Created
November 3, 2012 20:33
-
-
Save andlju/4008629 to your computer and use it in GitHub Desktop.
Design-time vs. runtime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<common:LayoutAwarePage | |
x:Class="Kodkaffe.App.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:Kodkaffe.App" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:common="using:Kodkaffe.App.Common" | |
mc:Ignorable="d" | |
DataContext="{Binding Main, Source={StaticResource Locator}}"> | |
<Page.Resources> | |
<!-- This works, but why do I need the d:Source attribute?? --> | |
<CollectionViewSource | |
x:Name="subjectsViewSource" | |
Source="{Binding Subjects}" | |
d:Source="{Binding Main.Subjects, Source={StaticResource Locator}}" | |
/> | |
</Page.Resources> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment