I am trying to get the xaml source of all WPF controls.
I want to understand how can I loop through starting from the Control class and iterating through all the controls and read the xaml of all the controls. My screen design is that on left side I have list of all the controls and on the right side I display the xaml of the selected control from the left side. I cannot hardcode the xaml from msdn website. There must be way to read and display xaml of all the controls dynamically via code