-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMainPage.xaml
More file actions
45 lines (44 loc) · 2.24 KB
/
MainPage.xaml
File metadata and controls
45 lines (44 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?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:dxsch="http://schemas.devexpress.com/xamarin/2014/forms/scheduler"
xmlns:local="clr-namespace:Scheduler_GettingStarted"
x:Class="Scheduler_GettingStarted.MainPage">
<ContentPage.BindingContext>
<local:ReceptionDeskViewModel/>
</ContentPage.BindingContext>
<dxsch:WorkWeekView Start="{Binding StartDate}"
FirstDayOfWeek="Monday"
WorkDays="Monday,Tuesday,Wednesday,Friday"
WorkTime="7:00:00-19:00:00"
ShowWorkTimeOnly="True"
TimeScaleInterval="01:00:00"
TimeScaleSlotCount="4"
SnapToCellsMode="Never"
Tap="WorkWeekView_Tap">
<dxsch:WorkWeekView.DataStorage>
<dxsch:SchedulerDataStorage x:Name="storage">
<dxsch:SchedulerDataStorage.DataSource>
<dxsch:DataSource AppointmentsSource="{Binding MedicalAppointments}"
AppointmentLabelsSource="{Binding AppointmentTypes}">
<dxsch:DataSource.AppointmentMappings>
<dxsch:AppointmentMappings
Id="Id"
Start="StartTime"
End="EndTime"
Subject="Subject"
LabelId="LabelId"
Location="Location"/>
</dxsch:DataSource.AppointmentMappings>
<dxsch:DataSource.AppointmentLabelMappings>
<dxsch:AppointmentLabelMappings
Caption="Caption"
Color="Color"
Id="Id"/>
</dxsch:DataSource.AppointmentLabelMappings>
</dxsch:DataSource>
</dxsch:SchedulerDataStorage.DataSource>
</dxsch:SchedulerDataStorage>
</dxsch:WorkWeekView.DataStorage>
</dxsch:WorkWeekView>
</ContentPage>