Skip to main content

ToolTipControllerEventArgsBase.SelectedControl Property

Gets or sets the control for which a tooltip controller’s event is fired.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.1.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

public Control SelectedControl { get; set; }

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SelectedControl property.

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.

See Also