| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <UserControl x:Class="PRSDesktop.SchedulePanel"
- 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:schedule="http://schemas.syncfusion.com/wpf"
- mc:Ignorable="d"
- d:DesignHeight="400" d:DesignWidth="900">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <ListView Grid.Column="0" Grid.Row="0" x:Name="Factories" HorizontalAlignment="Stretch"
- SelectionChanged="Factories_SelectionChanged">
- <ListView.ItemTemplate>
- <DataTemplate>
- <Grid HorizontalAlignment="Stretch" Margin="0,10,0,0">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Border Width="80" Height="80" CornerRadius="20,20,20,20" BorderBrush="Black"
- BorderThickness="1" VerticalAlignment="Center" HorizontalAlignment="Center">
- <Border.Background>
- <ImageBrush ImageSource="{Binding Path=Item2}" Stretch="UniformToFill" />
- </Border.Background>
- </Border>
- <TextBlock x:Name="PCName" Height="20" TextWrapping="Wrap" HorizontalAlignment="Center"
- Width="100" TextAlignment="Center" Text="{Binding Item1}" />
- </StackPanel>
- </Grid>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <schedule:SfSchedule Grid.Column="1" Grid.Row="0" Name="Schedule" Resource="Stations" WorkStartHour="7"
- WorkEndHour="16" ShowNonWorkingHours="False" ShowAllDay="False" AllowEditing="False"
- SizeChanged="Schedule_SizeChanged">
- <schedule:SfSchedule.AppointmentTemplate>
- <DataTemplate>
- <Border BorderBrush="Black" BorderThickness="0.75" CornerRadius="5"
- Background="{Binding AppointmentBackground}" Margin="0,0,0,0">
- <Grid Margin="5,5,5,5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding SetoutNumber}" FontWeight="Bold"
- FontSize="10" Foreground="{Binding AppointmentForeground}" />
- <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Subject}" FontWeight="Bold"
- FontSize="10" Foreground="{Binding AppointmentForeground}" />
- <TextBlock Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" FontSize="8"
- HorizontalAlignment="Left" Text="{Binding SetoutDescription}"
- TextWrapping="Wrap" Foreground="{Binding AppointmentForeground}" />
- </Grid>
- </Border>
- </DataTemplate>
- </schedule:SfSchedule.AppointmentTemplate>
- <!--<schedule:SfSchedule.AppointmentTemplate>
- <DataTemplate>
- <Grid>
- <Rectangle Fill="{Binding AppointmentBackground}"></Rectangle>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.25*" />
- <RowDefinition Height="0.75*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock Margin="10,2,0,0" Text="{Binding Subject}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Foreground="White" FontWeight="Light" FontFamily="Segoe UI"></TextBlock>
- <Image Source="c:/Development/Shared.png" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center" Stretch="None" />
- <TextBlock Text="{Binding StartTime}" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Foreground="White" FontWeight="Light" FontFamily="Segoe UI" TextWrapping="NoWrap" />
- </Grid>
- </Grid>
- </DataTemplate>
- </schedule:SfSchedule.AppointmentTemplate>-->
- </schedule:SfSchedule>
- </Grid>
- </UserControl>
|