123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <UserControl x:Class="PRSDesktop.TimesheetPanel"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PRSDesktop"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0" CornerRadius="5,5,0,0" Padding="5" Background="WhiteSmoke" BorderBrush="Gray"
- BorderThickness="0.75">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Label Grid.Column="0" Content="Show" VerticalContentAlignment="Center" />
- <ComboBox x:Name="View" Grid.Column="1" MinWidth="100" VerticalContentAlignment="Center"
- SelectedIndex="0" SelectionChanged="View_SelectionChanged">
- <ComboBoxItem Content="Today" />
- <ComboBoxItem Content="Yesterday" />
- <ComboBoxItem Content="This Week" />
- <ComboBoxItem Content="Last Week" />
- <ComboBoxItem Content="This Month" />
- <ComboBoxItem Content="Last Month" />
- <ComboBoxItem Content="This Year" />
- <ComboBoxItem Content="Last Year" />
- <ComboBoxItem Content="Custom" />
- </ComboBox>
- <Label x:Name="StartLabel" Grid.Column="2" Content="Starting" VerticalContentAlignment="Center" />
- <DatePicker x:Name="StartPicker" Grid.Column="3" MinWidth="100" VerticalContentAlignment="Center"
- IsEnabled="False" SelectedDateChanged="SelectedDateChanged" />
- <Label x:Name="EndLabel" Grid.Column="4" Content="Ending" VerticalContentAlignment="Center" />
- <DatePicker x:Name="EndPicker" Grid.Column="5" MinWidth="100" VerticalContentAlignment="Center"
- SelectedDateChanged="SelectedDateChanged" />
- <Label x:Name="FutureLabel" Grid.Column="6" Content="Include Future?" VerticalContentAlignment="Center" />
- <CheckBox x:Name="FutureTimes" Grid.Column="7" VerticalContentAlignment="Center"
- Checked="FutureTimes_Checked" Unchecked="FutureTimes_Checked" IsThreeState="False" />
- <Label x:Name="ApprovedLabel" Grid.Column="8" Content="Approved Only?"
- VerticalContentAlignment="Center" />
- <CheckBox x:Name="ApprovedTimes" Grid.Column="9" VerticalContentAlignment="Center"
- Checked="ApprovedTimes_Checked" Unchecked="ApprovedTimes_Checked" IsThreeState="False" />
- <Label Grid.Column="10" Content="Search" VerticalContentAlignment="Center" />
- <TextBox x:Name="Search" Grid.Column="11" KeyUp="Search_KeyUp" />
- </Grid>
- </Border>
- <local:TimesheetGrid x:Name="TimeSheets" Grid.Row="1" Margin="0,2,0,0" />
- </Grid>
- </UserControl>
|