ProductGroupSelector.xaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <UserControl x:Class="PRSDesktop.ProductGroupSelector"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PRSDesktop"
  7. xmlns:Syncfusion="http://schemas.syncfusion.com/wpf"
  8. mc:Ignorable="d"
  9. d:DesignHeight="600" d:DesignWidth="200">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto" />
  13. <RowDefinition Height="*" />
  14. </Grid.RowDefinitions>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="Auto" />
  17. <ColumnDefinition Width="*" />
  18. </Grid.ColumnDefinitions>
  19. <Button x:Name="SelectAll" Grid.Row="0" Grid.Column="0" Content="None" Width="40" Height="25" Click="SelectAll_OnClick" BorderBrush="DimGray" BorderThickness="0.75"/>
  20. <Border Grid.Row="0" Grid.Column="1" Margin="2,0,0,0" BorderBrush="DimGray" BorderThickness="0.75" Background="WhiteSmoke">
  21. <Label Content="Product Groups" HorizontalContentAlignment="Center" Padding="0" VerticalContentAlignment="Center" />
  22. </Border>
  23. <Syncfusion:CheckListBox
  24. x:Name="SelectedGroups"
  25. Grid.Row="1"
  26. Grid.ColumnSpan="2"
  27. Margin="0,2,0,0"
  28. DisplayMemberPath="Value"
  29. IsSelectAllEnabled="False"
  30. IsCheckOnFirstClick="True"
  31. ItemChecked="SelectedGroups_OnItemChecked" />
  32. </Grid>
  33. </UserControl>