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 |
Provide some instances where you have "xmlns:x" namespace in xaml?
When you create a WPF application instead of Windows Forms application?
Explain how you can display different data at run time and design time?
What is dependency property in wpf?
How does "updatesourcetrigger" affect bindings?
What is the difference between User Settings and Application Settings in WPF?
List some common localization or globalization practices for localizing or globalizing wpf?
What are wpf controls?
Define is wpf and state its advantages?
What is the value converter in wpf?
What type of elements can be hosted in a ToolBar?
What is milcore 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)