TimeSheetLeaveProcessor.xaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <Window x:Class="PRSDesktop.TimeSheetLeaveProcessor"
  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. Title="TimeSheetLeaveProcessor" Height="800" Width="800" WindowStartupLocation="CenterScreen">
  10. <Grid Margin="5">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="*"/>
  13. <RowDefinition Height="Auto"/>
  14. <RowDefinition Height="2*"/>
  15. <RowDefinition Height="Auto"/>
  16. </Grid.RowDefinitions>
  17. <DockPanel Grid.Row="0">
  18. <Border BorderBrush="Gray" BorderThickness="0.75" CornerRadius="5,5,0,0" Margin="0,0,0,2" DockPanel.Dock="Top" Background="Gainsboro">
  19. <Label VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Content="Standard Leaves" Background="Transparent"/>
  20. </Border>
  21. <local:TimeSheetStandardLeaveGrid x:Name="standardleave" DockPanel.Dock="Top"/>
  22. </DockPanel>
  23. <syncfusion:SfGridSplitter Grid.Row="1" ResizeBehavior="PreviousAndNext" Height="4" HorizontalAlignment="Stretch"
  24. Background="Transparent" Template="{StaticResource HorizontalSplitter}">
  25. <syncfusion:SfGridSplitter.PreviewStyle>
  26. <Style TargetType="Control">
  27. <Setter Property="Background" Value="Gray" />
  28. <Setter Property="Template">
  29. <Setter.Value>
  30. <ControlTemplate TargetType="Control">
  31. <Grid x:Name="Root" Opacity="0.5">
  32. <Rectangle Fill="{TemplateBinding Background}" />
  33. </Grid>
  34. </ControlTemplate>
  35. </Setter.Value>
  36. </Setter>
  37. </Style>
  38. </syncfusion:SfGridSplitter.PreviewStyle>
  39. </syncfusion:SfGridSplitter>
  40. <DockPanel Grid.Row="2">
  41. <Border BorderBrush="Gray" BorderThickness="0.75" CornerRadius="5,5,0,0" Margin="0,0,0,2" DockPanel.Dock="Top" Background="Gainsboro">
  42. <Label VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Content="Approved Leave Requests" Background="Transparent" />
  43. </Border>
  44. <local:TimeSheetLeaveRequestGrid x:Name="leaverequests" DockPanel.Dock="Top"/>
  45. </DockPanel>
  46. <DockPanel Grid.Row="3" LastChildFill="False" Margin="0,5,0,0">
  47. <Button x:Name="OK" DockPanel.Dock="Right" Content="Cancel" Width="80" Height="35" Click="Cancel_OnClick" />
  48. <Button x:Name="Cancel" DockPanel.Dock="Right" Content="OK" Width="80" Height="35" Margin="0,0,5,0" Click="OK_OnClick" />
  49. </DockPanel>
  50. </Grid>
  51. </Window>