Sunday, 15 May 2011

c# - WPF equivalent of the AccesibleName property -



c# - WPF equivalent of the AccesibleName property -

in winforms applications it's possible name controls accessibility clients using control.accessiblename property.

wpf controls lacking property, i'm wondering how can give accessible name controls in wpf application.

i've read documentations , know changed uia still can't find way alter property. stated in doc, there 2 required properties :

name automation id

i can find automation id not name. hidden ?

automationproperties.name attached property looking for.

you can either specify straight in xaml:

<object automationproperties.name="name" .../>

or using getter/setters on automationproperties:

using system.windows.automation; ... automationproperties.setname(control, "name");

...or...

control.setvalue(automationproperties.nameproperty, "name");

c# wpf accessibility

No comments:

Post a Comment