MasterList.xaml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <wpf:ThemableWindow x:Class="InABox.DynamicGrid.MasterList"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
  7. mc:Ignorable="d"
  8. Title="MasterList" Height="600" Width="450" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded">
  9. <Grid x:Name="layoutGrid">
  10. <Grid.RowDefinitions>
  11. <!--<RowDefinition Height="40"/>-->
  12. <RowDefinition Height="*" />
  13. </Grid.RowDefinitions>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="Auto" />
  16. <ColumnDefinition Width="*" />
  17. </Grid.ColumnDefinitions>
  18. <!--<ToolBar HorizontalAlignment="Stretch" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Stretch">
  19. <ToolBarPanel Height="35" VerticalAlignment="Stretch" Width="100"/>
  20. </ToolBar>-->
  21. <ListView Grid.Column="0" Grid.Row="0" x:Name="Groups" SelectionChanged="Groups_SelectionChanged" Width="Auto"
  22. Margin="5,5,0,5" BorderBrush="Gray" BorderThickness="0.75" Visibility="Collapsed">
  23. <ListView.ItemTemplate>
  24. <DataTemplate>
  25. <Grid Width="Auto" Margin="0,0,5,0">
  26. <Grid.ColumnDefinitions>
  27. <ColumnDefinition Width="Auto" />
  28. <ColumnDefinition Width="*" />
  29. </Grid.ColumnDefinitions>
  30. <Border Width="32" Height="32" CornerRadius="8" Grid.Column="0" Margin="0,5,5,5"
  31. BorderBrush="Gray" BorderThickness="0.75" HorizontalAlignment="Center">
  32. <Border.Background>
  33. <ImageBrush ImageSource="{Binding Path=Item3}" Stretch="UniformToFill" />
  34. </Border.Background>
  35. </Border>
  36. <TextBlock x:Name="PCName" Grid.Column="1" TextWrapping="WrapWithOverflow" Width="Auto"
  37. MaxWidth="200" TextAlignment="Left" VerticalAlignment="Center"
  38. Text="{Binding Item1}" />
  39. </Grid>
  40. </DataTemplate>
  41. </ListView.ItemTemplate>
  42. </ListView>
  43. </Grid>
  44. </wpf:ThemableWindow>