1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?xml version="1.0" encoding="utf-8"?>
- <ContentView xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:schedule="clr-namespace:Syncfusion.SfSchedule.XForms;assembly=Syncfusion.SfSchedule.XForms"
- xmlns:ui="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
- x:Class="comal.timesheets.iOS.Assignments.AssignmentColumn">
- <ContentView.Content>
- <StackLayout Orientation="Vertical">
-
- <ui:MaterialButton x:Name="Header"/>
-
- <schedule:SfSchedule
- x:Name="Schedule"
- HeightRequest="1240"
- ScheduleView="DayView"
- HeaderHeight="0"
- ViewHeaderHeight="0"
- TimeInterval="60"
- Background="Red"
- DataSource="{Binding Items}"
- CellTapped="Schedule_OnCellTapped"
- CellLongPressed="Schedule_OnCellLongPressed"
- ShowResourceView="False"
- EnableNavigation="False"
- VerticalOptions="Fill"
- FocusChangeRequested="Schedule_OnFocusChangeRequested"
- Focused="Schedule_OnFocused"
- >
-
- <schedule:SfSchedule.DayViewSettings>
- <schedule:DayViewSettings TimeRulerSize="0"/>
- </schedule:SfSchedule.DayViewSettings>
-
- <schedule:SfSchedule.AppointmentMapping>
- <schedule:ScheduleAppointmentMapping
- IdMapping="Id"
- SubjectMapping="Subject"
- ColorMapping="Color"
- StartTimeMapping="From"
- EndTimeMapping="To"
- NotesMapping="Notes"
- TextColorMapping="TextColor">
- </schedule:ScheduleAppointmentMapping>
- </schedule:SfSchedule.AppointmentMapping>
-
- <schedule:SfSchedule.AppointmentTemplate>
- <DataTemplate>
- <Frame BorderColor="Gray" CornerRadius="2" Margin="1" HasShadow="False" Padding="2" Background="{Binding Color}">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Grid.Column="0" FontAttributes="Bold" FontSize="Small" Text="{Binding Subject}" />
- <Image Grid.Row="0" Grid.Column="1" Source="gear" HeightRequest="32" WidthRequest="32" IsVisible="{Binding Completed}"/>
- <Label Grid.Row="1" Grid.Column="0" FontSize="Small" Text="{Binding Notes}" />
- </Grid>
- </Frame>
- </DataTemplate>
- </schedule:SfSchedule.AppointmentTemplate>
- </schedule:SfSchedule>
- </StackLayout>
- </ContentView.Content>
- </ContentView>
|