■ BarManager 엘리먼트의 DXContextMenu 첨부 속성을 사용하는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<TextBox x:Name="textBox" Width="200" Height="30" FontSize="16" Text="right-click this textbox"> <dxb:BarManager.DXContextMenu> <dxb:PopupMenu> <dxb:PopupMenu.ItemLinks> <dxb:BarButtonItemLink BarItemName="copyBarButtonItem" /> <dxb:BarButtonItemLink BarItemName="pasteBarButtonItem" /> <dxb:BarButtonItemLink BarItemName="undoBarButtonItem" /> <dxb:BarButtonItemLink BarItemName="redoBarButtonItem" /> </dxb:PopupMenu.ItemLinks> </dxb:PopupMenu> </dxb:BarManager.DXContextMenu> </TextBox> |
※ xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"