This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
/
MainWindow.xaml
55 lines (53 loc) · 3.4 KB
/
MainWindow.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<Window x:Class="CustomMenu.MainWindow"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduler"
xmlns:local="clr-namespace:DevExpress.Xpf.Scheduler.UI;assembly=DevExpress.Xpf.Scheduler.v21.1"
Title="MainWindow" Height="600" Width="800" Loaded="Window_Loaded">
<!--region #CommandDictionary-->
<Window.Resources>
<ResourceDictionary>
<dxsch:SchedulerUICommand x:Key="commands" />
<dxsch:SchedulerControlStringIdConverter x:Key="stringIdConverter" />
</ResourceDictionary>
</Window.Resources>
<!--endregion #CommandDictionary-->
<Grid>
<!--region #PopupMenuShowing-->
<dxsch:SchedulerControl Name="schedulerControl1"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
PopupMenuShowing="schedulerControl1_PopupMenuShowing">
<!--endregion #PopupMenuShowing-->
<!--region #DefaultPopupMenuCustomization-->
<!--Add items to the Default popup menu-->
<dxsch:SchedulerControl.DefaultMenuCustomizations>
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static local:SchedulerMenuItemName.NewAppointment}" />
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static local:SchedulerMenuItemName.NewRecurringAppointment}" />
<dxb:BarItemSeparator dxb:BarItemLinkActionBase.ItemLinkIndex="1" />
<dxb:BarButtonItem Name="customNavBackItem"
Content="Navigate View Backward"
dxb:BarItemLinkActionBase.ItemLinkIndex="2"
CommandParameter="{Binding ElementName=schedulerControl1}"
Command="{Binding NavigateViewBackward, Mode=OneTime, Source={StaticResource commands}}" />
<dxb:BarItemSeparator dxb:BarItemLinkActionBase.ItemLinkIndex="3" />
</dxsch:SchedulerControl.DefaultMenuCustomizations>
<!--endregion #DefaultPopupMenuCustomization-->
<!--region #AppointmentPopupMenuCustomization-->
<!--Add items to the Appointment popup menu-->
<dxsch:SchedulerControl.AppointmentMenuCustomizations>
<dxb:BarItemSeparator dxb:BarItemLinkActionBase.ItemLinkIndex="1" />
<dxb:BarCheckItem Name="customCheckItem"
Content="BarCheckItem Added in XAML"
dxb:BarItemLinkActionBase.ItemLinkIndex="2"
CheckedChanged="customCheckItem_CheckedChanged" />
<dxb:BarButtonItem Name="customButtonItem"
Content="BarButtonItem Added in XAML"
dxb:BarItemLinkActionBase.ItemLinkIndex="3"
ItemClick="customButtonItem_ItemClick" />
<dxb:BarItemSeparator dxb:BarItemLinkActionBase.ItemLinkIndex="4" />
</dxsch:SchedulerControl.AppointmentMenuCustomizations>
<!--endregion #AppointmentPopupMenuCustomization-->
</dxsch:SchedulerControl>
</Grid>
</Window>