-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
55 lines (52 loc) · 2.38 KB
/
MainWindow.xaml
File metadata and controls
55 lines (52 loc) · 2.38 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
<Window
x:Class="Localization.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Localization"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:skinmanager ="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
skinmanager:SfSkinManager.VisualStyle="MaterialLight"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
Title="Localization Demo"
Icon="App.ico"
WindowStartupLocation="CenterScreen">
<Window.Resources>
<ObjectDataProvider x:Key="schedulerviewtypes" MethodName="GetValues"
ObjectType="{x:Type system:Enum}">
<ObjectDataProvider.MethodParameters>
<x:Type Type="{x:Type syncfusion:SchedulerViewType}"/>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
</Window.Resources>
<Window.DataContext>
<local:ScheduleViewModel/>
</Window.DataContext>
<Grid>
<syncfusion:SfScheduler x:Name="Schedule"
ItemsSource="{Binding Appointments}"
ViewType="{Binding ElementName=viewtypecombobox, Path=SelectedValue}">
<syncfusion:SfScheduler.AppointmentMapping>
<syncfusion:AppointmentMapping
Subject="EventName"
StartTime="From"
EndTime="To"
AppointmentBackground="BackgroundColor"
Foreground="ForegroundColor"
IsAllDay="IsAllDay"
StartTimeZone="StartTimeZone"
EndTimeZone="EndTimeZone"/>
</syncfusion:SfScheduler.AppointmentMapping>
<syncfusion:SfScheduler.MonthViewSettings>
<syncfusion:MonthViewSettings AppointmentDisplayMode="Appointment"
AppointmentDisplayCount="2"/>
</syncfusion:SfScheduler.MonthViewSettings>
</syncfusion:SfScheduler>
<StackPanel
HorizontalAlignment="Right"
VerticalAlignment="Top"
Margin="0,10,25,0" Orientation="Horizontal" >
<ComboBox x:Name="viewtypecombobox" ItemsSource="{Binding Source={StaticResource schedulerviewtypes}}"
SelectedIndex="2" Width="150"/>
</StackPanel>
</Grid>
</Window>