■ BarContainerControl 엘리먼트를 사용하는 방법을 보여준다.
▶ 예제 코드 (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 |
<dxb:BarManager x:Name="barManager"> <dxb:BarManager.Items> ... </dxb:BarManager.Items> <dxb:BarManager.Bars> <dxb:Bar x:Name="formatBar" Caption="Format"> <dxb:Bar.DockInfo> <dxb:BarDockInfo ContainerType="Top" /> </dxb:Bar.DockInfo> <dxb:Bar.ItemLinks> ... </dxb:Bar.ItemLinks> </dxb:Bar> ... <dxb:Bar x:Name="alignmentBar" Caption="Alignment"> <dxb:Bar.DockInfo> <dxb:BarDockInfo ContainerName="noneBarContainerControl" /> </dxb:Bar.DockInfo> <dxb:Bar.ItemLinks> ... </dxb:Bar.ItemLinks> </dxb:Bar> </dxb:BarManager.Bars> <DockPanel x:Name="dockPanel" LastChildFill="False"> <dxb:BarContainerControl x:Name="topBarContainerControl" DockPanel.Dock="Top" ContainerType="Top"> </dxb:BarContainerControl> ... <dxb:BarContainerControl x:Name="noneBarContainerControl" DockPanel.Dock="Top" ContainerType="None" Orientation="Horizontal"> </dxb:BarContainerControl> </DockPanel> </dxb:BarManager> |
※ xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
※ xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"