| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <?xml version="1.0" encoding="UTF-8"?>
- <ContentPage
- xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
- x:Class="comal.timesheets.AssignmentList"
- xmlns:local="clr-namespace:comal.timesheets"
- xmlns:schedule="clr-namespace:Syncfusion.SfSchedule.XForms;assembly=Syncfusion.SfSchedule.XForms"
- >
- <ContentPage.BindingContext>
- <local:AssignmentListDataModel x:Name="DataModel"/>
- </ContentPage.BindingContext>
-
- <NavigationPage.TitleView>
- <Grid Margin="0" Padding="0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <Label
- Grid.Column="0"
- x:Name="Title"
- Text="Assignments"
- VerticalOptions="Center"
- HorizontalOptions="Center"
- HorizontalTextAlignment="Center"
- TextColor="White"
- FontSize="Medium"
- FontAttributes="Bold"
- BackgroundColor="Transparent"/>
- <StackLayout
- Grid.Column="1"
- Orientation="Horizontal"
- x:Name="Buttons">
- <Image
- x:Name="SelectDate"
- Aspect="AspectFit"
- WidthRequest="30"
- HorizontalOptions="End"
- Margin="5,5,0,5">
-
- <Image.Source>
- <OnPlatform x:TypeArguments="ImageSource">
- <OnPlatform.Platforms>
- <On Platform="iOS" Value="calendar"/>
- <On Platform="Android" Value="calendar"/>
- </OnPlatform.Platforms>
- </OnPlatform>
- </Image.Source>
- <Image.GestureRecognizers>
- <TapGestureRecognizer Tapped="SelectedDate_Tapped"/>
- </Image.GestureRecognizers>
- </Image>
-
- <DatePicker x:Name="DatePicker" IsVisible="False" DateSelected="DatePicker_OnDateSelected" />
-
- <Image
- x:Name="SelectEmployees"
- Aspect="AspectFit"
- WidthRequest="30"
- HorizontalOptions="End"
- Margin="5">
-
- <Image.Source>
- <OnPlatform x:TypeArguments="ImageSource">
- <OnPlatform.Platforms>
- <On Platform="iOS" Value="user"/>
- <On Platform="Android" Value="user"/>
- </OnPlatform.Platforms>
- </OnPlatform>
- </Image.Source>
- <Image.GestureRecognizers>
- <TapGestureRecognizer Tapped="SelectEmployees_Tapped"/>
- </Image.GestureRecognizers>
- </Image>
-
- </StackLayout>
- </Grid>
- </NavigationPage.TitleView>
- <ContentPage.Content>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
-
- <schedule:SfSchedule
- x:Name="Schedule"
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- ScheduleView="DayView"
- HeaderHeight="0"
- ViewHeaderHeight="0"
- TimeInterval="60"
- TimeIntervalHeight="100"
- VisibleDatesChangedEvent="Schedule_OnVisibleDatesChangedEvent"
- DataSource="{Binding Items}"
- CellTapped="Schedule_OnCellTapped"
- CellLongPressed="Schedule_OnCellLongPressed">
- <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 CornerRadius="5" HasShadow="false" Padding="2" Background="Red"> -->
- <!-- <Grid> -->
- <!-- <Grid.ColumnDefinitions> -->
- <!-- <ColumnDefinition Width="Auto"/> -->
- <!-- <ColumnDefinition Width="*"/> -->
- <!-- </Grid.ColumnDefinitions> -->
- <!-- <Grid.RowDefinitions> -->
- <!-- <RowDefinition Height="Auto"/> -->
- <!-- <RowDefinition Height="*"/> -->
- <!-- </Grid.RowDefinitions> -->
- <!-- <Label Grid.Row="0" Grid.Column="0" Text="{Binding Number}"/> -->
- <!-- <Label Grid.Row="0" Grid.Column="1" Text="Task Title"/> -->
- <!-- <Label Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="Task Description"/> -->
- <!-- </Grid> -->
- <!-- </Frame> -->
- <!-- </DataTemplate> -->
- <!-- </schedule:SfSchedule.AppointmentTemplate> -->
- </schedule:SfSchedule>
-
- <Button
- x:Name="AddButton"
- Grid.Row="1"
- Grid.Column="1"
- Margin="0,0,10,10"
- HeightRequest="50"
- WidthRequest="50"
- CornerRadius="50"
- Text="+"
- BorderWidth="0"
- Background="Red"
- Clicked="AddButton_OnClicked"/>
-
- </Grid>
- </ContentPage.Content>
- </ContentPage>
|