GlobalTokenWindow.xaml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <wpf:ThemableWindow x:Class="PRSDesktop.GlobalTokenWindow"
  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:local="clr-namespace:PRSDesktop"
  7. xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
  8. mc:Ignorable="d"
  9. Title="Security Defaults" Height="800" Width="1400" WindowStartupLocation="CenterScreen">
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="Auto" />
  13. <ColumnDefinition Width="*" />
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="*" />
  17. </Grid.RowDefinitions>
  18. <ListView Grid.Column="0" Grid.Row="0" x:Name="Groups" SelectionChanged="Groups_SelectionChanged"
  19. Margin="5,5,0,5" BorderBrush="Gray" BorderThickness="0.75" HorizontalAlignment="Stretch"
  20. Visibility="Collapsed">
  21. <ListView.ItemTemplate>
  22. <DataTemplate>
  23. <Grid Margin="5,10,5,5" HorizontalAlignment="Stretch">
  24. <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch">
  25. <Border Width="64" Height="64" CornerRadius="15" BorderBrush="Black" BorderThickness="1"
  26. VerticalAlignment="Center" HorizontalAlignment="Center">
  27. <Border.Background>
  28. <ImageBrush ImageSource="{Binding Path=Item3}" Stretch="UniformToFill" />
  29. </Border.Background>
  30. </Border>
  31. <TextBlock Height="Auto" TextWrapping="Wrap" TextAlignment="Center" Width="80"
  32. Text="{Binding Item2}" />
  33. </StackPanel>
  34. </Grid>
  35. </DataTemplate>
  36. </ListView.ItemTemplate>
  37. </ListView>
  38. <local:GlobalTokenGrid x:Name="Tokens" Grid.Row="0" Grid.Column="1" Margin="5" />
  39. </Grid>
  40. </wpf:ThemableWindow>