Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
We are automating an "Winforms" application.

When we try to fetch the AutomationElement's IsEnabledProperty value, we always get false.

We tried for both Enabled and Disabled context menu items. For both the types we get false.

As per MSDN link "AutomationElement.IsEnabledProperty Field (System.Windows.Automation)[^]" we tried fetching from cache as well. Still we get false as response.

Is there any work around? Or we are missing anything? Or is there any bug in this "menuitem.GetCurrentPropertyValue(AutomationElement.ItemStatusProperty);"

What I have tried:

We tried using "menuitem.GetCurrentPropertyValue(AutomationElement.ItemStatusProperty);"
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900