Back to Devexpress

BaseView Events

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-baseview-dot-underscore-events.md

latest10.1 KB
Original Source

BaseView Events

The base class for Views in a DocumentManager.

NameDescription
BeforeLoadLayoutFires when the View attempts to restore a previously saved layout version. Allows you to cancel this restoration.
BeginDockingAllows you to cancel docking a document onto the current control.
BeginDocumentsHostDockingOccurs whenever a Floating Documents Container starts docking to this BaseView.
BeginFloatingFires when an end-user starts to drag a docked document, so that it is transformed into a floating window.
BeginSizingOccurs when a resizing of the current View’s layout begins.
ControlLoadedOccurs after a control has been loaded to a Document within this BaseView.
ControlReleasedFires after a control has been succesfully unbound from its parent document.
ControlReleasingOccurs when a document is deselected and allows you to unbind the document from its content and dispose of the content. This event is in effect in Deferred Load mode.
ControlShownFires when an empty document is loaded and displayed.
CustomDocumentsHostWindowAllows you to replace the default container for floating documents. Handle this event only when the BaseView.FloatingDocumentContainer property equals DocumentsHost.
CustomDrawBackgroundOccurs when the current View’s background becomes visible to an end-user.
DisposedOccurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
DocumentActivatedFires when the View’s ActiveDocument or ActiveFloatDocument property value changes. This event does not occur on DocumentManager initialization, or when user focus switches between a docked and a floating Document. In these cases, handle the DocumentActivate event instead.
DocumentAddedFires when a new document is added to the current View.
DocumentClosedFires after a document has been closed.
DocumentClosingFires when a document is about to be closed.
DocumentDeactivatedFires when a document is deactivated.
DocumentRemovedFires when a document is removed from the BaseView.Documents collection.
DocumentSelectorCustomSortItemsAllows you to manually sort documents and dock panels displayed within the Document Selector.
DocumentSelectorHiddenFires when a document selector is closed.
DocumentSelectorShownFires when a document selector is displayed.
EmptyDocumentsHostWindowFires when the last floating document in the documents host window is closed or the control it contains is disposed, allowing you to specify whether to keep open the empty documents host window.
EndDockingFires after a document has been docked to the control.
EndDocumentsHostDockingOccurs when a Floating Document Container with all its child Documents is docked to a View.
EndFloatingFires after an end-user drops a floating document.
EndSizingOccurs when resizing the current View’s layout is complete.
FloatingFires when a docked document becomes floating.
GotFocusFires when focus is moved to any document within the current View.
LayoutOccurs whenever the current DocumentManager‘s layout is being modified.
LayoutResetFires after a DocumentManager‘s layout was reset.
LayoutResettingOccurs when the current BaseView‘s layout is to be reset.
LayoutUpgradeOccurs after a layout whose version doesn’t match the current layout’s version has been loaded from storage (a stream, xml file or system registry).
LoadingIndicatorShowingOccurs when the loading indicator is shown within this BaseView.
LostFocusFires when focus is moved from the current View’s document to any external control (for instance, to an external DockPanel).
NextDocumentFires when an end-user tries to switch to the next or previous document by pressing CTRL+TAB or CTRL+SHIFT+TAB.
PaintOccurs when the BaseView is redrawn.
PopupMenuShowingFires when a context menu is about to be displayed.
QueryControlOccurs when a document is to be displayed and allows you to assign content to this document. This event is in effect in Deferred Load mode.
QueryDocumentOccurs when the restored layout version has a Document that is not present in the View. Allows you to skip this Document or add it to the View.
RegisterDocumentsHostWindowFires when a document starts to float in its individual container. Provides access to the host window and its DocumentManager so you can handle events as required. This event is in effect in DocumentsHost mode.
RestoreLayoutErrorOccurs when a saved layout is invalid and cannot be restored. Allows you to fix restore layout exceptions.
ShowingDockGuidesAllows you to hide dock guides and hints that appear when a user drags a Document or a DockPanel.
UnregisterDocumentsHostWindowFires when a documents host window is closed and allows you to unsubscribe event handlers from its DocumentManager.

See Also

BaseView Class

BaseView Members

DevExpress.XtraBars.Docking2010.Views Namespace