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

Класс AvalonDock.DocumentContent

Represent a document which can be host by a DocumentPane. Подробнее...

Граф наследования:AvalonDock.DocumentContent:
AvalonDock.ManagedContent AvalonDock.BaseContent TSLab.Controls.BaseContentPane< T >

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

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

override void OnApplyTemplate ()
override void Show ()
 Show DocumentContent as tabbed document.
override void Show (DockingManager manager)
 Show DocumentContent as tabbed document inside the provided DockingManager
void Show (bool showAsFloatingWindow)
 Show DocumentContent as tabbed document or inside a floating window.
void Show (DockingManager manager, bool showAsFloatingWindow)
 Show DocumentContent as tabbed document inside the provided DockingManager
override void Activate ()
 Activate the document showing its header if it's not visible.
override bool Close ()
 Close this document removing it from its parent container.
override bool Hide ()
 Hide the DocumentContent (Close the document).
override void SaveLayout (System.Xml.XmlWriter storeWriter)
override void RestoreLayout (System.Xml.XmlElement contentElement)

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

static readonly DependencyProperty InfoTipProperty
 InfoTip Dependency Property.
static readonly DependencyProperty ContentTypeDescriptionProperty
 ContentTypeDescription Dependency Property.
static readonly DependencyProperty IsFloatingAllowedProperty
static readonly DependencyProperty IsFloatingProperty = IsFloatingPropertyKey.DependencyProperty

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

override void OnContentLoaded ()
override void OnContentUnloaded ()
override void OnDragStart (Point ptMouse, Point ptRelativeMouse)
override void OnDragMouseMove (object sender, MouseEventArgs e)
override void OnDragMouseLeave (object sender, MouseEventArgs e)
override void OnInitialized (EventArgs e)
override bool CanExecuteCommand (ICommand command)
 Retrive a value indicating if the command can be executed based to the dockable content state.

Свойства

string InfoTip [get, set]
 Gets or sets the InfoTip property. This dependency property indicates information text attached to the document content.
string ContentTypeDescription [get, set]
 Gets or sets the ContentTypeDescription property. This dependency property indicates a text which describes the type of content contained in this document.
bool IsFloatingAllowed [get, set]
 Gets or sets a value indicating if this document can float over main window (VS2010 Feature).
bool IsFloating [get]
 Gets the IsFloating property. This dependency property indicates if the DocumentContent is floating inside an external window.

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

Represent a document which can be host by a DocumentPane.

A document is always hosted by a DocumentPane usually in the central area of DockingManager. It has limited dragging features becaus it can be only moved to an other DocumentPane and can't float as a separate window. You can access all documents within DockingManager with property DockingManager.Documents.


Методы

override void AvalonDock.DocumentContent.Activate (  )  [virtual]

Activate the document showing its header if it's not visible.

Переопределяет метод предка AvalonDock.ManagedContent.

override bool AvalonDock.DocumentContent.CanExecuteCommand ( ICommand  command  )  [protected, virtual]

Retrive a value indicating if the command can be executed based to the dockable content state.

Аргументы:
command 
Возвращает:

Переопределяет метод предка AvalonDock.ManagedContent.

override bool AvalonDock.DocumentContent.Close (  )  [virtual]

Close this document removing it from its parent container.

Use this function to close a document and remove it from its parent container. Please note that if you simply remove it from its parent DocumentPane without call this method, events like OnClosing/OnClosed are not called.

Замещает AvalonDock.ManagedContent.

override bool AvalonDock.DocumentContent.Hide (  )  [virtual]

Hide the DocumentContent (Close the document).

Возвращает:

Замещает AvalonDock.ManagedContent.

override void AvalonDock.DocumentContent.Show (  )  [virtual]

Show DocumentContent as tabbed document.

Замещает AvalonDock.ManagedContent.

void AvalonDock.DocumentContent.Show ( bool  showAsFloatingWindow  ) 

Show DocumentContent as tabbed document or inside a floating window.

void AvalonDock.DocumentContent.Show ( DockingManager  manager,
bool  showAsFloatingWindow 
)

Show DocumentContent as tabbed document inside the provided DockingManager

Аргументы:
manager Docking manager target
showAsFloatingWindow True if document should be shown inside a floating window (DocumentFloatingWindow)
override void AvalonDock.DocumentContent.Show ( DockingManager  manager  )  [virtual]

Show DocumentContent as tabbed document inside the provided DockingManager

Аргументы:
manager Docking manager target

Замещает AvalonDock.ManagedContent.


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

readonly DependencyProperty AvalonDock.DocumentContent.ContentTypeDescriptionProperty [static]
Инициализатор
            DependencyProperty.Register("ContentTypeDescription", typeof(string), typeof(DocumentContent),
                new FrameworkPropertyMetadata((string)string.Empty))

ContentTypeDescription Dependency Property.

readonly DependencyProperty AvalonDock.DocumentContent.InfoTipProperty [static]
Инициализатор
            DependencyProperty.Register("InfoTip", typeof(string), typeof(DocumentContent),
                new FrameworkPropertyMetadata(null))

InfoTip Dependency Property.

readonly DependencyProperty AvalonDock.DocumentContent.IsFloatingAllowedProperty [static]
Инициализатор
            DependencyProperty.Register("IsFloatingAllowed", typeof(bool), typeof(DocumentContent), new PropertyMetadata(true))

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

string AvalonDock.DocumentContent.ContentTypeDescription [get, set]

Gets or sets the ContentTypeDescription property. This dependency property indicates a text which describes the type of content contained in this document.

string AvalonDock.DocumentContent.InfoTip [get, set]

Gets or sets the InfoTip property. This dependency property indicates information text attached to the document content.

This text is usually displayed when users switch between documents and helps them to choose the right one.

bool AvalonDock.DocumentContent.IsFloating [get]

Gets the IsFloating property. This dependency property indicates if the DocumentContent is floating inside an external window.

bool AvalonDock.DocumentContent.IsFloatingAllowed [get, set]

Gets or sets a value indicating if this document can float over main window (VS2010 Feature).