Skip to main content
All docs
V24.2

DXAccessible.QueryAccessibleInfoEventArgs.OwnerControl Property

Gets the control that contains the currently processed UI element.

Namespace: DevExpress.Accessibility

Assembly: DevExpress.Utils.v24.2.dll

Declaration

public Control OwnerControl { get; }

Property Value

Type Description
Control

The control that contains the currently processed UI element.

Remarks

Example

The following QueryAccessibleInfo event handler supplies the AccessibleName and AccessibleDescription settings for tiles in a TileControl.

public Form1() {
    InitializeComponent();
    DXAccessible.QueryAccessibleInfo += DXAccessible_QueryAccessibleInfo;
}

private void DXAccessible_QueryAccessibleInfo(object sender, DXAccessible.QueryAccessibleInfoEventArgs e) {
    if (e.Role == AccessibleRole.ListItem && e.OwnerControl == tileControl1) {
        TileItem item = e.Owner as TileItem;
        if (item != null && item.Elements.Count > 1) {
            e.Name = item.Elements[0].Text;
            e.Description = item.Elements[1].Text;
        }
    }
}
See Also