windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-baseview-aeb484ff.md
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
public event DocumentEventHandler DocumentActivated
Public Event DocumentActivated As DocumentEventHandler
The DocumentActivated event's data class is DocumentEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Document | Points 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
this.customWidgetView1.QueryControl += customWidgetView1_QueryControl;
this.customWidgetView1.DocumentActivated += customWidgetView1_DocumentActivated;
}
winforms-create-custom-document-manager/VB/CustomDocument/Main.vb#L15
AddHandler Me.customWidgetView1.QueryControl, AddressOf customWidgetView1_QueryControl
AddHandler Me.customWidgetView1.DocumentActivated, AddressOf customWidgetView1_DocumentActivated
End Sub
See Also