PageRenderTime 33ms CodeModel.GetById 9ms RepoModel.GetById 0ms 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
Possible License(s): CC-BY-SA-3.0
  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. <ListView x:Name="itemsControl" ItemsSource="{Binding}"/>
  21. </v:ViewBase>