-
Notifications
You must be signed in to change notification settings - Fork 0
/
ResourceBrushPropertyView.xaml
35 lines (32 loc) · 1.75 KB
/
ResourceBrushPropertyView.xaml
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
<UserControl x:Class="DXSample.Views.ResourceBrushPropertyView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduling"
xmlns:ViewModels="clr-namespace:DXSample.ViewModels">
<UserControl.DataContext>
<ViewModels:SchedulingViewModel />
</UserControl.DataContext>
<Grid>
<dxsch:SchedulerControl ActiveViewType="MonthView"
CommandBarStyle="Ribbon"
GroupType="Resource">
<dxsch:SchedulerControl.DataSource>
<dxsch:DataSource AppointmentsSource="{Binding Appointments}"
ResourcesSource="{Binding Resources}">
<dxsch:DataSource.AppointmentMappings>
<dxsch:AppointmentMappings End="EndTime"
Id="Id"
ResourceId="ResourceId"
Start="StartTime"
Subject="Subject" />
</dxsch:DataSource.AppointmentMappings>
<dxsch:DataSource.ResourceMappings>
<dxsch:ResourceMappings Brush="Brush"
Caption="Caption"
Id="Id" />
</dxsch:DataSource.ResourceMappings>
</dxsch:DataSource>
</dxsch:SchedulerControl.DataSource>
</dxsch:SchedulerControl>
</Grid>
</UserControl>