TimesheetPanel.xaml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <UserControl x:Class="PRSDesktop.TimesheetPanel"
  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="450" d:DesignWidth="800">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="Auto" />
  12. <RowDefinition Height="*" />
  13. </Grid.RowDefinitions>
  14. <Border Grid.Row="0" CornerRadius="5,5,0,0" Padding="5" Background="WhiteSmoke" BorderBrush="Gray"
  15. BorderThickness="0.75">
  16. <Grid>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="Auto" />
  19. <ColumnDefinition Width="Auto" />
  20. <ColumnDefinition Width="Auto" />
  21. <ColumnDefinition Width="Auto" />
  22. <ColumnDefinition Width="Auto" />
  23. <ColumnDefinition Width="Auto" />
  24. <ColumnDefinition Width="Auto" />
  25. <ColumnDefinition Width="Auto" />
  26. <ColumnDefinition Width="Auto" />
  27. <ColumnDefinition Width="Auto" />
  28. <ColumnDefinition Width="Auto" />
  29. <ColumnDefinition Width="*" />
  30. </Grid.ColumnDefinitions>
  31. <Label Grid.Column="0" Content="Show" VerticalContentAlignment="Center" />
  32. <ComboBox x:Name="View" Grid.Column="1" MinWidth="100" VerticalContentAlignment="Center"
  33. SelectedIndex="0" SelectionChanged="View_SelectionChanged">
  34. <ComboBoxItem Content="Today" />
  35. <ComboBoxItem Content="Yesterday" />
  36. <ComboBoxItem Content="This Week" />
  37. <ComboBoxItem Content="Last Week" />
  38. <ComboBoxItem Content="This Month" />
  39. <ComboBoxItem Content="Last Month" />
  40. <ComboBoxItem Content="This Year" />
  41. <ComboBoxItem Content="Last Year" />
  42. <ComboBoxItem Content="Custom" />
  43. </ComboBox>
  44. <Label x:Name="StartLabel" Grid.Column="2" Content="Starting" VerticalContentAlignment="Center" />
  45. <DatePicker x:Name="StartPicker" Grid.Column="3" MinWidth="100" VerticalContentAlignment="Center"
  46. IsEnabled="False" SelectedDateChanged="SelectedDateChanged" />
  47. <Label x:Name="EndLabel" Grid.Column="4" Content="Ending" VerticalContentAlignment="Center" />
  48. <DatePicker x:Name="EndPicker" Grid.Column="5" MinWidth="100" VerticalContentAlignment="Center"
  49. SelectedDateChanged="SelectedDateChanged" />
  50. <Label x:Name="FutureLabel" Grid.Column="6" Content="Include Future?" VerticalContentAlignment="Center" />
  51. <CheckBox x:Name="FutureTimes" Grid.Column="7" VerticalContentAlignment="Center"
  52. Checked="FutureTimes_Checked" Unchecked="FutureTimes_Checked" IsThreeState="False" />
  53. <Label x:Name="ApprovedLabel" Grid.Column="8" Content="Approved Only?"
  54. VerticalContentAlignment="Center" />
  55. <CheckBox x:Name="ApprovedTimes" Grid.Column="9" VerticalContentAlignment="Center"
  56. Checked="ApprovedTimes_Checked" Unchecked="ApprovedTimes_Checked" IsThreeState="False" />
  57. <Label Grid.Column="10" Content="Search" VerticalContentAlignment="Center" />
  58. <TextBox x:Name="Search" Grid.Column="11" KeyUp="Search_KeyUp" />
  59. </Grid>
  60. </Border>
  61. <local:TimesheetGrid x:Name="TimeSheets" Grid.Row="1" Margin="0,2,0,0" />
  62. </Grid>
  63. </UserControl>