JobSummaryPanel.xaml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <UserControl x:Class="PRSDesktop.JobSummaryPanel"
  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. mc:Ignorable="d"
  8. d:DesignHeight="300" d:DesignWidth="300">
  9. <UserControl.Resources>
  10. <Style x:Key="TextAlignLeft" TargetType="CheckBox">
  11. <Style.Resources>
  12. <Style TargetType="Path">
  13. <Setter Property="FlowDirection" Value="LeftToRight" />
  14. </Style>
  15. <Style TargetType="TextBlock">
  16. <Setter Property="FlowDirection" Value="LeftToRight" />
  17. </Style>
  18. </Style.Resources>
  19. <Setter Property="FlowDirection" Value="RightToLeft" />
  20. </Style>
  21. </UserControl.Resources>
  22. <Grid>
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="Auto"/>
  25. <RowDefinition Height="*"/>
  26. </Grid.RowDefinitions>
  27. <Grid.ColumnDefinitions>
  28. <ColumnDefinition Width="*"/>
  29. </Grid.ColumnDefinitions>
  30. <Border
  31. Grid.Row="0"
  32. Grid.Column="0"
  33. CornerRadius="5,5,0,0"
  34. BorderBrush="Gray"
  35. BorderThickness="0.75"
  36. Padding="5,2"
  37. Background="WhiteSmoke" >
  38. <DockPanel>
  39. <CheckBox
  40. x:Name="ReservedStock"
  41. Content="Include Other Reserves"
  42. IsThreeState="False"
  43. IsChecked="False"
  44. DockPanel.Dock="Right"
  45. VerticalContentAlignment="Center"
  46. Style="{StaticResource TextAlignLeft}"
  47. Checked="ReservedStock_OnChecked" Unchecked="ReservedStock_OnChecked"/>
  48. <CheckBox
  49. x:Name="IssuesCheckBox"
  50. Content="Issues Only"
  51. IsThreeState="False"
  52. IsChecked="False"
  53. DockPanel.Dock="Right"
  54. VerticalContentAlignment="Center"
  55. Style="{StaticResource TextAlignLeft}"
  56. Margin="0,0,5,0"
  57. Checked="IssuesCheckBox_Checked" Unchecked="IssuesCheckBox_Checked"/>
  58. <Label Content="" DockPanel.Dock="Left"/>
  59. </DockPanel>
  60. </Border>
  61. <local:JobSummaryGrid x:Name="Summary" Grid.Row="1" Margin="0,2,0,0" />
  62. </Grid>
  63. </UserControl>