How to get automation ids of items in a itemscontrol?
Answer / Durgesh Kumar
To get the AutomationIds of items in an ItemsControl, you can use the AutomationPeer.GetAutomationIdProperty method. However, ItemsControl does not provide automatic support for getting AutomationIds. You need to implement IInputElementProvider interface and override the GetFirstChildCore and GetLastChildCore methods to get access to each child element's AutomationPeer and retrieve its AutomationId.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between Silverlight and WPF?
What is the use of Data Templates in binding in WPF binding controls?
What are the advantages of wpf over windows forms?
How to creating windows forms controls dynamically in wpf?
What is the use of custom control?
Write down the syntax for resources in wpf.
What are the different types of layout controls?
Where does the execution start in a WPF application?
What type of elements can be hosted in a ToolBar?
Explain WPF UI Automation.
Can you explain the complete wpf object hierarchy?
How can I sort items in a ListBox in WPF?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)