Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to get automation ids of items in a itemscontrol?



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

Post New Answer

More WPF Interview Questions

What is the difference between Silverlight and WPF?

1 Answers   Wipro,


What is the use of Data Templates in binding in WPF binding controls?

1 Answers  


What are the advantages of wpf over windows forms?

1 Answers  


How to creating windows forms controls dynamically in wpf?

1 Answers  


What is the use of custom control?

1 Answers  


Write down the syntax for resources in wpf.

1 Answers  


What are the different types of layout controls?

1 Answers  


Where does the execution start in a WPF application?

1 Answers  


What type of elements can be hosted in a ToolBar?

1 Answers  


Explain WPF UI Automation.

1 Answers   MCN Solutions,


Can you explain the complete wpf object hierarchy?

1 Answers  


How can I sort items in a ListBox in WPF?

1 Answers   Tech Mahindra,


Categories