What I am looking to do is create a list of all the WPF controls that ship with .NET 4.
Ideally, this list would need to be a collection of string objects of items like “Button”, “ListBox” etc.
Any help would be much appreciated!
Kris
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will retrieve all subclasses of
FrameworkElementin thePresentationFrameworkassemblyNote: there isn’t a very clear definition of what is a “control” in WPF… there is a
Controlclass, but not all UI elements inherit from it. Most “controls” inherit (directly or indirectly) fromFrameworkElement.