XAML behind Label element

JumpyNET

Centurion
Joined
Apr 4, 2005
Messages
196
I am trying to study WPF and was wondering if it is possible to examine the XAML or "source code" behind the "native" elements such as Label.

PS: I am using Visual Studio Professional 2012.
 
Expression blend will allow you to edit a copy of a control's template - right click on it and there should be an option to "Edit Template" - if you select copy you will get the XAML for the control template. That would allow you to see how the UI part of the control is built.
 
Seeing just the UI part was not quite the thing I had in mind. The idea was that studying the whole code could be good for learning XAML.

I just found this free tool called ILSpy, which is able to show the VB code behind System.Windows.Controls.Label. I just don't know how to find the XAML "equivalent".
 
Back
Top