Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXAccessible.QueryAccessibleInfoEventArgs.Owner Property

Gets the QueryAccessibleInfoEventArgs.Owner control’s child object that contains the currently processed UI element.

Namespace: DevExpress.Accessibility

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

public object Owner { get; }

#Property Value

Type Description
Object

The control’s child object 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