■ DockLayoutManager 엘리먼트를 사용하는 방법을 보여준다.
▶ 예제 코드 (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 |
<Grid> <dxd:DockLayoutManager x:Name="dockLayoutManager"> <dxd:LayoutGroup Orientation="Horizontal"> <dxd:LayoutPanel x:Name="toolboxLayoutPanel" Caption="Toolbox" ItemWidth="150" /> <dxd:DocumentGroup> <dxd:DocumentPanel x:Name="documentPanel1" Caption="Document 1"> <RichTextBox /> </dxd:DocumentPanel> <dxd:DocumentPanel x:Name="documentPanel2" Caption="Document 2"> <RichTextBox /> </dxd:DocumentPanel> </dxd:DocumentGroup> </dxd:LayoutGroup> <dxd:DockLayoutManager.AutoHideGroups> <dxd:AutoHideGroup DockType="Right"> <dxd:LayoutPanel x:Name="propertyLayoutPanel" Caption="Properties"> </dxd:LayoutPanel> </dxd:AutoHideGroup> </dxd:DockLayoutManager.AutoHideGroups> <dxd:DockLayoutManager.FloatGroups> <dxd:FloatGroup FloatLocation="200 100" FloatSize="200 200"> <dxd:LayoutPanel x:Name="messageLayoutPanel" Caption="Message"> <RichTextBox /> </dxd:LayoutPanel> </dxd:FloatGroup> </dxd:DockLayoutManager.FloatGroups> </dxd:DockLayoutManager> </Grid> |
※ xmlns:dxd="http://schemas.devexpress.com/winfx/2008/xaml/docking"