Back to Devexpress

BaseView.DocumentActivated Event

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-baseview-aeb484ff.md

latest3.7 KB
Original Source

BaseView.DocumentActivated Event

Fires 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.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public event DocumentEventHandler DocumentActivated
vb
Public Event DocumentActivated As DocumentEventHandler

Event Data

The DocumentActivated event's data class is DocumentEventArgs. The following properties provide information specific to this event:

PropertyDescription
DocumentPoints to the document related to the current event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DocumentActivated event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-create-custom-document-manager/CS/CustomDocument/Main.cs#L13

csharp
this.customWidgetView1.QueryControl += customWidgetView1_QueryControl;
    this.customWidgetView1.DocumentActivated += customWidgetView1_DocumentActivated;
}

winforms-create-custom-document-manager/VB/CustomDocument/Main.vb#L15

vb
AddHandler Me.customWidgetView1.QueryControl, AddressOf customWidgetView1_QueryControl
    AddHandler Me.customWidgetView1.DocumentActivated, AddressOf customWidgetView1_DocumentActivated
End Sub

See Also

ActivateDocument(Control)

Activate(BaseDocument)

ActiveDocument

DocumentDeactivated

BaseView Class

BaseView Members

DevExpress.XtraBars.Docking2010.Views Namespace