ToolTipControllerEventArgsBase.SelectedControl Property
Gets or sets the control for which a tooltip controller’s event is fired.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v26.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
Declaration
Property Value
| Type | Description |
|---|---|
| Control | A Control object for which the event is fired. |
Remarks
Use the SelectedControl property to get the control for which a tooltip controller’s event is fired. If a tooltip is invoked for a GridControl‘s element, for instance, the SelectedObject property will refer to the grid itself. If the tooltip is about to be displayed for the SimpleButton, then SelectedControl will refer to this button, etc
For controls that support displaying different tooltips for different control elements (GridControl, ButtonEdit, for instance), you can use the ToolTipControllerEventArgsBase.SelectedObject property to access the required element.