1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <UserControl x:Class="PRSDesktop.UserActivity"
- 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:syncfusion="http://schemas.syncfusion.com/wpf"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="42" />
- <RowDefinition Height="*" />
- <!--<RowDefinition Height="0.75*"/>-->
- </Grid.RowDefinitions>
- <Border Grid.Row="0" CornerRadius="5,5,0,0" BorderBrush="DarkGray" BorderThickness="0.75"
- Background="WhiteSmoke">
- <Grid Margin="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="120" />
- <ColumnDefinition x:Name="ShowAll" Width="70" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="60" />
- </Grid.ColumnDefinitions>
- <ComboBox x:Name="ViewStyle" Grid.Column="0" Width="120" SelectedIndex="0"
- SelectionChanged="ViewStyle_SelectionChanged" VerticalContentAlignment="Center">
- <ComboBox.Items>
- <ComboBoxItem Content="Daily" />
- <ComboBoxItem Content="Weekly" />
- <ComboBoxItem Content="Monthly" />
- <ComboBoxItem Content="Yearly" />
- </ComboBox.Items>
- </ComboBox>
- <ComboBox x:Name="GroupView" Grid.Column="1" SelectedIndex="0" Margin="5,0,0,0"
- SelectionChanged="GroupView_SelectionChanged" VerticalContentAlignment="Center"
- DisplayMemberPath="Value" SelectedValuePath="Key" />
- <ComboBox x:Name="StaffView" Grid.Column="2" SelectedIndex="0" Margin="5,0,0,0"
- SelectionChanged="StaffView_SelectionChanged" VerticalContentAlignment="Center"
- DisplayMemberPath="Value" SelectedValuePath="Key" />
- <Button Grid.Column="3" Content="Show All" Margin="5,0,0,0" Click="ShowAll_Click" />
- <DockPanel Grid.Column="4">
- <Label DockPanel.Dock="Left" Content="Search" />
- <TextBox x:Name="Search" DockPanel.Dock="Left" Text="" VerticalContentAlignment="Center"
- KeyUp="Search_KeyUp" />
- </DockPanel>
- <StackPanel Grid.Column="5" Orientation="Horizontal" HorizontalAlignment="Center">
- <Button x:Name="PrevDay" Width="40" BorderThickness="0" Background="Transparent"
- Click="PrevDay_Click" />
- <TextBox x:Name="CurrentDate" Width="200" Text="ddd, dd MMMM yyyy"
- HorizontalContentAlignment="Center" Background="Transparent"
- VerticalContentAlignment="Center" MouseDoubleClick="CurrentDate_MouseDoubleClick" />
- <Button x:Name="NextDay" Width="40" BorderThickness="0" Background="Transparent"
- Click="NextDay_Click" />
- </StackPanel>
- <Button x:Name="Export" Grid.Column="6" Content="Export" Click="Export_Click" />
- </Grid>
- </Border>
- <Border Grid.Row="1" Margin="0,2,0,0" BorderThickness="0.75,0.75,0.75,0" BorderBrush="DarkGray"
- Background="WhiteSmoke">
- <syncfusion:SfChart x:Name="Hours" HorizontalAlignment="Stretch" Margin="10,10,10,0"
- VerticalAlignment="Stretch" SelectionChanged="Hours_SelectionChanged">
- <!--<syncfusion:SfChart.Resources>
- <DataTemplate x:Key="labelTemplate">
- <Label Content="{Binding LabelContent}" Width="150" FontSize="12" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
- </DataTemplate>
- <ItemsPanelTemplate x:Key="itemPanelTemplate">
- <WrapPanel Orientation="Horizontal" Margin="25,0,0,0"/>
- </ItemsPanelTemplate>
- </syncfusion:SfChart.Resources>-->
- <syncfusion:SfChart.PrimaryAxis>
- <syncfusion:CategoryAxis FontSize="12" ShowGridLines="True" LabelRotationAngle="270"
- Visibility="Visible" Interval="1" />
- </syncfusion:SfChart.PrimaryAxis>
- <syncfusion:SfChart.SecondaryAxis>
- <syncfusion:NumericalAxis FontSize="12" Header="Hours" LabelFormat="0.00" LabelExtent="25" />
- </syncfusion:SfChart.SecondaryAxis>
- <syncfusion:SfChart.Behaviors>
- <syncfusion:ChartSelectionBehavior EnableSegmentSelection="True" EnableSeriesSelection="False" />
- </syncfusion:SfChart.Behaviors>
- </syncfusion:SfChart>
- </Border>
- </Grid>
- </UserControl>
|