■ DockLayoutManager 클래스의 ContextMenuCustomizations 속성을 사용해 커스텀 컨텍스트 메뉴를 추가하는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 8 9 10 11 12 |
<dxd:DockLayoutManager.ContextMenuCustomizations> <dxb:BarButtonItem x:Name="aboutBarButtonItem" dxb:BarItemLinkActionBase.ItemLinkIndex="0" CategoryName="Help" Content="About" ItemClick="aboutBarButtonItem_ItemClick" /> <dxb:InsertBarItemLinkAction ItemLinkIndex="1"> <dxb:BarItemLinkSeparator /> </dxb:InsertBarItemLinkAction> </dxd:DockLayoutManager.ContextMenuCustomizations> |
※ xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
※ xmlns:dxd="http://schemas.devexpress.com/winfx/2008/xaml/docking"