Открытые члены | Статические открытые данные | Защищенные члены | Свойства | События

Класс AvalonDock.DockingManager

Represents a control which manages a dockable layout for its children. Подробнее...

Граф наследования:AvalonDock.DockingManager:
AvalonDock.IDropSurface

Полный список членов класса

Открытые члены

void Dispose ()
 Call this function if you want to deallocate external floating windows, that otherwise are closed when main window is closed.
override void OnApplyTemplate ()
 Overriden to get a reference to underlying template elements.
void Anchor (DockablePane paneToAnchor, AnchorStyle anchor)
 Anchor a dockable pane to a border.
void Anchor (Pane paneToAnchor, Pane relativePane, AnchorStyle anchor)
 Anchor a pane (DockablePane and DocumentPane) to a border of a another pane.
void Anchor (DockablePane paneToAnchor, DocumentPane relativePane, AnchorStyle anchor)
 Anchor a dockable pane (DockablePane) to a border of a document pane.
void Anchor (DocumentPane paneToAnchor, DocumentPane relativePane, AnchorStyle anchor)
 Anchor a document pane (DocumentPane) to a border of an other document pane.
void Anchor (DockablePane paneToAnchor, DockablePane relativePane, AnchorStyle anchor)
 Anchor a dockable pane (DockablePane) to a border of an other dockable pane.
void SaveLayout (TextWriter textWriter)
 Save layout as xml to a TextWriter
void SaveLayout (Stream backendStream)
 Save layout as xml to generic stream.
void SaveLayout (string filename)
 Save layout as xml text into a file.
void SaveLayout (XmlWriter sw)
 Send layout configuration to a XmlTextWriter object.
delegate void DeserializationCallbackHandler (object sender, DeserializationCallbackEventArgs e)
void RestoreLayout (Stream backendStream)
 Restore a DockingManager layout from xml.
void RestoreLayout (XmlReader reader)
 Restore a DockingManager layout from xml.
void RestoreLayout (string filename)
 Loads a xml content from a file and restore the DockingManager layout contained in it.
void RestoreLayout (TextReader reader)
 Restore a DockingManager layout from a xml string.
void HideShowFloatingWindows (bool bShow)

Статические открытые данные

static readonly DependencyProperty ActiveDocumentProperty
 ActiveDocument Dependency Property.
static readonly DependencyProperty ActiveContentProperty
 ActiveContent Dependency Property.
static readonly DependencyProperty DockableContentsProperty = DockableContentsPropertyKey.DependencyProperty
static readonly DependencyProperty DocumentsProperty = DocumentsPropertyKey.DependencyProperty
static readonly DependencyProperty DocumentsSourceProperty
static readonly DependencyProperty IsAnimationEnabledProperty

Защищенные члены

virtual void Dispose (bool disposing)
virtual void OnActiveDocumentChanged (DependencyPropertyChangedEventArgs e)
 Provides derived classes an opportunity to handle changes to the ActiveDocument property.
virtual void OnActiveContentChanged (DependencyPropertyChangedEventArgs e)
 Provides derived classes an opportunity to handle changes to the ActiveContent property.
override void OnContentChanged (object oldContent, object newContent)
override void OnInitialized (EventArgs e)
override void OnPropertyChanged (DependencyPropertyChangedEventArgs e)
override void OnKeyDown (KeyEventArgs e)
override void OnKeyUp (KeyEventArgs e)
override Size ArrangeOverride (Size arrangeBounds)
override void OnRenderSizeChanged (SizeChangedInfo sizeInfo)
 Handles the resize changed event to update location and size of the flyout window.
override void OnMouseMove (MouseEventArgs e)
override void OnMouseUp (MouseButtonEventArgs e)
override void OnMouseLeave (MouseEventArgs e)
virtual void OnDocumentClosing (CancelEventArgs e)
 Ovveride this method to handle DocumentClosing event.
virtual void OnDocumentClosed ()
 Ovveride this method to handle DocumentClosed event.

Свойства

ManagedContent ActiveDocument [get, set]
 Gets or sets the ActiveDocument property. This dependency property indicates currently active document.
ManagedContent ActiveContent [get, set]
 Gets or sets the ActiveContent property. This dependency property indicates the active content.
DockableContent ActiveDockableContent [get]
 Gets the active dockable content.
ManagedContentCollection
< DockableContent
DockableContents [get, set]
 Gets the DockableContents property. This dependency property retrives the collection of DockableContent that are bound to DockingManager
ManagedContentCollection
< DocumentContent
Documents [get, set]
 Gets the DockableContents property. This dependency property retrives the collection of DocumentContent that are bound to DockingManager
IEnumerable DocumentsSource [get, set]
 Get or set the source collection for documents.
DocumentPane MainDocumentPane [get, set]
 Gets the main DocumentPane that can be used to add new document.
FloatingWindow[] FloatingWindows [get]
 Get all floating windows created by the DockingManager while user dragged contents.
bool IsAnimationEnabled [get, set]
 Gets or sets a value indicating if flyout windows should animate when are open or closed.
DeserializationCallbackHandler DeserializationCallback [get, set]
bool RestoringLayout [get, set]
 True while is restoring a layout.
bool IsReady [get, set]

События

EventHandler ActiveDocumentChanged
 Raised whenever the ActiveDocument property changes.
EventHandler ActiveContentChanged
 Raised whenever the ActiveContent changes.
PropertyChangedEventHandler PropertyChanged
EventHandler< CancelEventArgs > DocumentClosing
 Event fired when the document is about to be closed.
EventHandler DocumentClosed
 Event fired when a document has been closed.

Подробное описание

Represents a control which manages a dockable layout for its children.


Методы

void AvalonDock.DockingManager.Anchor ( DockablePane  paneToAnchor,
AnchorStyle  anchor 
)

Anchor a dockable pane to a border.

Аргументы:
paneToAnchor 
anchor 
void AvalonDock.DockingManager.Anchor ( Pane  paneToAnchor,
Pane  relativePane,
AnchorStyle  anchor 
)

Anchor a pane (DockablePane and DocumentPane) to a border of a another pane.

Аргументы:
paneToAnchor Pane to anchor
relativePane Pane relative
anchor Position relative to the target pane
void AvalonDock.DockingManager.Anchor ( DockablePane  paneToAnchor,
DocumentPane  relativePane,
AnchorStyle  anchor 
)

Anchor a dockable pane (DockablePane) to a border of a document pane.

Аргументы:
paneToAnchor Pane to anchor
relativePane Pane relative
anchor 
void AvalonDock.DockingManager.Anchor ( DocumentPane  paneToAnchor,
DocumentPane  relativePane,
AnchorStyle  anchor 
)

Anchor a document pane (DocumentPane) to a border of an other document pane.

Аргументы:
paneToAnchor Pane to anchor
relativePane Pane relative
anchor 
void AvalonDock.DockingManager.Anchor ( DockablePane  paneToAnchor,
DockablePane  relativePane,
AnchorStyle  anchor 
)

Anchor a dockable pane (DockablePane) to a border of an other dockable pane.

Аргументы:
paneToAnchor Pane to anchor
relativePane Pane relative
anchor 
void AvalonDock.DockingManager.Dispose (  ) 

Call this function if you want to deallocate external floating windows, that otherwise are closed when main window is closed.

virtual void AvalonDock.DockingManager.OnActiveContentChanged ( DependencyPropertyChangedEventArgs  e  )  [protected, virtual]

Provides derived classes an opportunity to handle changes to the ActiveContent property.

virtual void AvalonDock.DockingManager.OnActiveDocumentChanged ( DependencyPropertyChangedEventArgs  e  )  [protected, virtual]

Provides derived classes an opportunity to handle changes to the ActiveDocument property.

override void AvalonDock.DockingManager.OnApplyTemplate (  ) 

Overriden to get a reference to underlying template elements.

virtual void AvalonDock.DockingManager.OnDocumentClosed (  )  [protected, virtual]

Ovveride this method to handle DocumentClosed event.

virtual void AvalonDock.DockingManager.OnDocumentClosing ( CancelEventArgs  e  )  [protected, virtual]

Ovveride this method to handle DocumentClosing event.

override void AvalonDock.DockingManager.OnRenderSizeChanged ( SizeChangedInfo  sizeInfo  )  [protected]

Handles the resize changed event to update location and size of the flyout window.

Аргументы:
sizeInfo 
void AvalonDock.DockingManager.RestoreLayout ( TextReader  reader  ) 

Restore a DockingManager layout from a xml string.

Аргументы:
reader 
void AvalonDock.DockingManager.RestoreLayout ( string  filename  ) 

Loads a xml content from a file and restore the DockingManager layout contained in it.

Аргументы:
filename 
void AvalonDock.DockingManager.RestoreLayout ( Stream  backendStream  ) 

Restore a DockingManager layout from xml.

Аргументы:
backendStream 
void AvalonDock.DockingManager.RestoreLayout ( XmlReader  reader  ) 

Restore a DockingManager layout from xml.

Аргументы:
reader 
void AvalonDock.DockingManager.SaveLayout ( Stream  backendStream  ) 

Save layout as xml to generic stream.

Аргументы:
backendStream Stream receiving the xml string

The stream is not closed

void AvalonDock.DockingManager.SaveLayout ( XmlWriter  sw  ) 

Send layout configuration to a XmlTextWriter object.

Аргументы:
sw Object which stores the xml

The writer is not closed.

void AvalonDock.DockingManager.SaveLayout ( string  filename  ) 

Save layout as xml text into a file.

Аргументы:
filename Path to the file

The file is created as new or overwritten is already exist a file with same name.

void AvalonDock.DockingManager.SaveLayout ( TextWriter  textWriter  ) 

Save layout as xml to a TextWriter

Аргументы:
textWriter Text writter object which receive the xml text

The writer is not closed.


Данные класса

readonly DependencyProperty AvalonDock.DockingManager.ActiveContentProperty [static]
Инициализатор
            DependencyProperty.Register("ActiveContent", typeof(ManagedContent), typeof(DockingManager),
                new FrameworkPropertyMetadata(null,
                    new PropertyChangedCallback(OnActiveContentChanged),
                    new CoerceValueCallback(CoerceActiveContentValue)))

ActiveContent Dependency Property.

readonly DependencyProperty AvalonDock.DockingManager.ActiveDocumentProperty [static]
Инициализатор
            DependencyProperty.Register("ActiveDocument", typeof(ManagedContent), typeof(DockingManager),
                new FrameworkPropertyMetadata(null,
                    new PropertyChangedCallback(OnActiveDocumentChanged),
                    new CoerceValueCallback(CoerceActiveDocumentValue)))

ActiveDocument Dependency Property.

readonly DependencyProperty AvalonDock.DockingManager.DocumentsSourceProperty [static]
Инициализатор
            DependencyProperty.Register("DocumentsSource", typeof(IEnumerable), typeof(DockingManager), new UIPropertyMetadata(null, new PropertyChangedCallback((s, e) => ((DockingManager)s).OnDocumentsSourceChanged(e.OldValue as IEnumerable, e.NewValue as IEnumerable))))
readonly DependencyProperty AvalonDock.DockingManager.IsAnimationEnabledProperty [static]
Инициализатор
            DependencyProperty.Register("IsAnimationEnabled", typeof(bool), typeof(DockingManager), new UIPropertyMetadata(false))

Полный список свойств

ManagedContent AvalonDock.DockingManager.ActiveContent [get, set]

Gets or sets the ActiveContent property. This dependency property indicates the active content.

DockableContent AvalonDock.DockingManager.ActiveDockableContent [get]

Gets the active dockable content.

If no dockbale content us active at the moment returns null.

ManagedContent AvalonDock.DockingManager.ActiveDocument [get, set]

Gets or sets the ActiveDocument property. This dependency property indicates currently active document.

The active document not neessary receive keyboard focus. To set keyboard focus on a content see ActiveContent

ManagedContentCollection<DockableContent> AvalonDock.DockingManager.DockableContents [get, set]

Gets the DockableContents property. This dependency property retrives the collection of DockableContent that are bound to DockingManager

ManagedContentCollection<DocumentContent> AvalonDock.DockingManager.Documents [get, set]

Gets the DockableContents property. This dependency property retrives the collection of DocumentContent that are bound to DockingManager

IEnumerable AvalonDock.DockingManager.DocumentsSource [get, set]

Get or set the source collection for documents.

FloatingWindow [] AvalonDock.DockingManager.FloatingWindows [get]

Get all floating windows created by the DockingManager while user dragged contents.

bool AvalonDock.DockingManager.IsAnimationEnabled [get, set]

Gets or sets a value indicating if flyout windows should animate when are open or closed.

DocumentPane AvalonDock.DockingManager.MainDocumentPane [get, set]

Gets the main DocumentPane that can be used to add new document.

bool AvalonDock.DockingManager.RestoringLayout [get, set, protected]

True while is restoring a layout.


Cобытия

EventHandler AvalonDock.DockingManager.ActiveContentChanged

Raised whenever the ActiveContent changes.

EventHandler AvalonDock.DockingManager.ActiveDocumentChanged

Raised whenever the ActiveDocument property changes.

EventHandler AvalonDock.DockingManager.DocumentClosed

Event fired when a document has been closed.

Note that when a document is closed, property like ManagedContent.ContainerPane or ManagedContent.Manager returns null.

EventHandler<CancelEventArgs> AvalonDock.DockingManager.DocumentClosing

Event fired when the document is about to be closed.