DeliveredOnSitePanel.xaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <UserControl x:Class="PRSDesktop.DeliveredOnSitePanel"
  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" BorderBrush="Gray" BorderThickness="1" Background="WhiteSmoke"
  15. Padding="5">
  16. <DockPanel HorizontalAlignment="Stretch">
  17. <Label DockPanel.Dock="Left" Margin="0,0,5,0" Content="Filter" />
  18. <ComboBox x:Name="View" DockPanel.Dock="Left" Width="120" SelectedIndex="0"
  19. SelectionChanged="ViewStyle_SelectionChanged" VerticalContentAlignment="Center">
  20. <ComboBox.Items>
  21. <ComboBoxItem Content="Today" />
  22. <ComboBoxItem Content="Yesterday" />
  23. <ComboBoxItem Content="This Week" />
  24. <ComboBoxItem Content="Last Week" />
  25. <ComboBoxItem Content="This Month" />
  26. <ComboBoxItem Content="Last Month" />
  27. <ComboBoxItem Content="This Year" />
  28. <ComboBoxItem Content="Last Year" />
  29. <ComboBoxItem Content="Custom" />
  30. </ComboBox.Items>
  31. </ComboBox>
  32. <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="From" Margin="20,0,5,0" />
  33. <DatePicker DockPanel.Dock="Left" x:Name="StartPicker" Width="120" Background="LightYellow"
  34. SelectedDateChanged="SelectedDateChanged" VerticalContentAlignment="Center"
  35. FirstDayOfWeek="Monday" />
  36. <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="To" Margin="5,0,5,0" />
  37. <DatePicker DockPanel.Dock="Left" x:Name="EndPicker" Width="120" Background="LightYellow"
  38. SelectedDateChanged="SelectedDateChanged" VerticalContentAlignment="Center"
  39. FirstDayOfWeek="Monday" />
  40. <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="Search" Margin="20,0,5,0" />
  41. <TextBox DockPanel.Dock="Left" x:Name="Search" HorizontalAlignment="Stretch"
  42. VerticalContentAlignment="Center" KeyUp="Search_KeyUp" />
  43. </DockPanel>
  44. </Border>
  45. <local:DeliveredOnSiteGrid Grid.Row="1" Margin="0,2,0,0" x:Name="Items" />
  46. </Grid>
  47. </UserControl>