-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSchedulingView.xaml
More file actions
60 lines (55 loc) · 3.32 KB
/
SchedulingView.xaml
File metadata and controls
60 lines (55 loc) · 3.32 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<UserControl x:Class="DXSample.Views.SchedulingView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduling"
xmlns:ViewModels="clr-namespace:DXSample.ViewModels"
xmlns:local="clr-namespace:DXSample.Behaviors">
<UserControl.DataContext>
<ViewModels:SchedulingViewModel />
</UserControl.DataContext>
<DockPanel>
<dxr:RibbonStatusBarControl DockPanel.Dock="Bottom">
<dxr:RibbonStatusBarControl.RightItems>
<dxb:BarStaticItem>
<dxmvvm:Interaction.Behaviors>
<local:BarStaticItemResetBehavior Value="{Binding Status}" />
</dxmvvm:Interaction.Behaviors>
</dxb:BarStaticItem>
</dxr:RibbonStatusBarControl.RightItems>
</dxr:RibbonStatusBarControl>
<dxsch:SchedulerControl Name="scheduler"
CommandBarStyle="Ribbon"
ActiveViewType="MonthView"
ShowDateNavigationPanel="True">
<dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand EventName="AppointmentAdded" Command="{Binding SaveCommand}" />
<dxmvvm:EventToCommand EventName="AppointmentEdited" Command="{Binding SaveCommand}" />
<dxmvvm:EventToCommand EventName="AppointmentRemoved" Command="{Binding SaveCommand}" />
<dxmvvm:EventToCommand EventName="AppointmentRestored" Command="{Binding SaveCommand}" />
</dxmvvm:Interaction.Behaviors>
<dxsch:SchedulerControl.DataSource>
<dxsch:DataSource AppointmentsSource="{Binding Appts}"
ResourcesSource="{Binding Calendars}">
<dxsch:DataSource.ResourceMappings>
<dxsch:ResourceMappings Caption="Description"
Id="Id" />
</dxsch:DataSource.ResourceMappings>
<dxsch:DataSource.AppointmentMappings>
<dxsch:AppointmentMappings Description="Description"
End="End"
Id="Id"
LabelId="Label"
RecurrenceInfo="RecurrenceInfo"
ResourceId="ResourceId"
Start="Start"
Subject="Subject"
Type="AppointmentType" />
</dxsch:DataSource.AppointmentMappings>
</dxsch:DataSource>
</dxsch:SchedulerControl.DataSource>
</dxsch:SchedulerControl>
</DockPanel>
</UserControl>