デフォルトで、IsPinned は True です。これは現在の位置に基づいてペインが表示されることを意味します。False に設定されると、ペインは現在の位置から削除され、含んでいる XamDockManager の UnpinnedTabArea 内に表示されます。
Imports Infragistics.Windows.DockManager Private Sub InitializeDmPinning(ByVal dockManager As XamDockManager) ' ContentPanes that are docked to an edge of ' the XamDockManager can be unpinned. When ' unpinned they are represented by a tab in ' the unpinned tab area along the corresponding ' edge of the dockmanager. ' The IsPinned property is used to indicate ' the pinned state. ContentPanes are pinned ' by default. Dim cpPinned As New ContentPane() cpPinned.Header = "Starts Pinned" Dim cpUnpinned As New ContentPane() cpUnpinned.Header = "Starts Unpinned" cpUnpinned.IsPinned = False Dim splitBottom As New SplitPane() splitBottom.SplitterOrientation = Orientation.Vertical XamDockManager.SetInitialLocation(splitBottom, InitialPaneLocation.DockedBottom) splitBottom.Panes.Add(cpPinned) splitBottom.Panes.Add(cpUnpinned) dockManager.Panes.Add(splitBottom) ' AllowPinning is used to indicate whether ' the end user may change the IsPinned state. Dim cpPinnedAlways As New ContentPane() cpPinnedAlways.Header = "Always Pinned" cpPinnedAlways.AllowPinning = False Dim cpUnpinnedAlways As New ContentPane() cpUnpinnedAlways.Header = "Always Unpinned" cpUnpinnedAlways.AllowPinning = False cpUnpinnedAlways.IsPinned = False Dim splitLeft As New SplitPane() splitLeft.SplitterOrientation = Orientation.Horizontal XamDockManager.SetInitialLocation(splitLeft, InitialPaneLocation.DockedLeft) splitLeft.Panes.Add(cpPinnedAlways) splitLeft.Panes.Add(cpUnpinnedAlways) dockManager.Panes.Add(splitLeft) End Sub
using Infragistics.Windows.DockManager; private void InitializeDmPinning(XamDockManager dockManager) { // ContentPanes that are docked to an edge of // the XamDockManager can be unpinned. When // unpinned they are represented by a tab in // the unpinned tab area along the corresponding // edge of the dockmanager. // The IsPinned property is used to indicate // the pinned state. ContentPanes are pinned // by default. ContentPane cpPinned = new ContentPane(); cpPinned.Header = "Starts Pinned"; ContentPane cpUnpinned = new ContentPane(); cpUnpinned.Header = "Starts Unpinned"; cpUnpinned.IsPinned = false; SplitPane splitBottom = new SplitPane(); splitBottom.SplitterOrientation = Orientation.Vertical; XamDockManager.SetInitialLocation(splitBottom, InitialPaneLocation.DockedBottom); splitBottom.Panes.Add(cpPinned); splitBottom.Panes.Add(cpUnpinned); dockManager.Panes.Add(splitBottom); // AllowPinning is used to indicate whether // the end user may change the IsPinned state. ContentPane cpPinnedAlways = new ContentPane(); cpPinnedAlways.Header = "Always Pinned"; cpPinnedAlways.AllowPinning = false; ContentPane cpUnpinnedAlways = new ContentPane(); cpUnpinnedAlways.Header = "Always Unpinned"; cpUnpinnedAlways.AllowPinning = false; cpUnpinnedAlways.IsPinned = false; SplitPane splitLeft = new SplitPane(); splitLeft.SplitterOrientation = Orientation.Horizontal; XamDockManager.SetInitialLocation(splitLeft, InitialPaneLocation.DockedLeft); splitLeft.Panes.Add(cpPinnedAlways); splitLeft.Panes.Add(cpUnpinnedAlways); dockManager.Panes.Add(splitLeft); }