Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

Coded ui - Add/Create Custom Automation Property

$
0
0

Hi,

How can I easily add custom property for Coded UI
I want to use/add other properties than the one defined in AutomationProperies (i.e HelpText, ItemStatus,...) , so I will be able to Bind them to my WPF application.
I read the article : 
http://msdn.microsoft.com/en-us/library/hh552522.aspx

and it require a lot of maintence due to changes in the application.
Is there a simpler way to add custom automation property that "behave" as a defined one?

I mean that I want to "save/expose" properties of a control in the AutomationProperties.XXX so I will be able to check them.
for instance, I want to check the color of a control and if it change due to a certain action,
currently I save this information, the color of the control, in "AutomationProperties.HelpText"
I would like to be able to save it in "AutomationProperties.MyProperty".


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>