PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Main/src/Xbap/DynamicDataDisplay.Xbap.Samples/Internals/Views/FlatDemonstrationsView.xaml

#
XAML | 22 lines | 21 code | 1 blank | 0 comment | 0 complexity | 8c888b0a2300cb8f19783bb372cc1ecd MD5 | raw file
 1<v:ViewBase x:Class="Microsoft.Research.DynamicDataDisplay.Samples.Internals.Views.FlatDemonstrationsView"
 2            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 4			xmlns:v="clr-namespace:Microsoft.Research.DynamicDataDisplay.Samples.Internals.Views"
 5            xmlns:vm="clr-namespace:Microsoft.Research.DynamicDataDisplay.Samples.Internals.ViewModels"
 6            DataContextChanged="OnDataContextChanged" SelectedValue="{Binding SelectedValue, ElementName=itemsControl}"
 7    >
 8    <v:ViewBase.Resources>
 9        <DataTemplate DataType="{x:Type vm:DemonstrationViewModel}">
10            <StackPanel Orientation="Horizontal">
11                <TextBlock Text="{Binding Demonstration.Description}"/>
12                <TextBlock Text=" "/>
13                <Grid Style="{StaticResource GridStyle}">
14                    <Rectangle Style="{StaticResource RectangleStyle}"/>
15                    <TextBlock Text="{Binding Version}" Style="{StaticResource TextStyle}"/>
16                </Grid>
17            </StackPanel>
18        </DataTemplate>
19    </v:ViewBase.Resources>
20    
21    <ListView x:Name="itemsControl" ItemsSource="{Binding}"/>
22</v:ViewBase>