1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <wpf:ThemableWindow x:Class="InABox.DynamicGrid.MasterList"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
- mc:Ignorable="d"
- Title="MasterList" Height="600" Width="450" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded">
- <Grid x:Name="layoutGrid">
- <Grid.RowDefinitions>
- <!--<RowDefinition Height="40"/>-->
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <!--<ToolBar HorizontalAlignment="Stretch" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Stretch">
- <ToolBarPanel Height="35" VerticalAlignment="Stretch" Width="100"/>
- </ToolBar>-->
- <ListView Grid.Column="0" Grid.Row="0" x:Name="Groups" SelectionChanged="Groups_SelectionChanged" Width="Auto"
- Margin="5,5,0,5" BorderBrush="Gray" BorderThickness="0.75" Visibility="Collapsed">
- <ListView.ItemTemplate>
- <DataTemplate>
- <Grid Width="Auto" Margin="0,0,5,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Border Width="32" Height="32" CornerRadius="8" Grid.Column="0" Margin="0,5,5,5"
- BorderBrush="Gray" BorderThickness="0.75" HorizontalAlignment="Center">
- <Border.Background>
- <ImageBrush ImageSource="{Binding Path=Item3}" Stretch="UniformToFill" />
- </Border.Background>
- </Border>
- <TextBlock x:Name="PCName" Grid.Column="1" TextWrapping="WrapWithOverflow" Width="Auto"
- MaxWidth="200" TextAlignment="Left" VerticalAlignment="Center"
- Text="{Binding Item1}" />
- </Grid>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </wpf:ThemableWindow>
|