JobSummaryPanel.xaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <Border Grid.Row="0" CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="0.75" Padding="5,2" Background="WhiteSmoke" >
  28. <DockPanel>
  29. <CheckBox
  30. x:Name="ReservedStock"
  31. Content="Include Other Reserves"
  32. IsThreeState="False"
  33. IsChecked="False"
  34. DockPanel.Dock="Right"
  35. VerticalContentAlignment="Center"
  36. Style="{StaticResource TextAlignLeft}"
  37. Checked="ReservedStock_OnChecked" Unchecked="ReservedStock_OnChecked"/>
  38. <Label Content="" DockPanel.Dock="Left"/>
  39. </DockPanel>
  40. </Border>
  41. <local:JobSummaryGrid x:Name="Summary" Grid.Row="1" Margin="0,2,0,0" />
  42. </Grid>
  43. </UserControl>