How to inspect Microsoft.Windows.Themes

534 Views Asked by At

It's no secret that wpf exposes it's default themes , for example here's a shortened version of how a checkbox template looks

xmlns:theme="clr-namespace:Microsoft.Windows.Themes"

<ControlTemplate TargetType="{x:Type CheckBox}">
     <BulletDecorator>
          <BulletDecorator.Bullet>
                <theme:BulletChrome />
          </BulletDecorator.Bullet>
          <ContentPresenter />
     </BulletDecorator>
</ControlTemplate>

gee .. that's great and most help full (NOT!)

i actually wanted to see how the check mark path looks like , is there any way to observe the inner content of :

Microsoft.Windows.Themes

1

There are 1 best solutions below

1
Sheridan On

If you are looking for the default Microsoft XAML that resides inside the Styles, Templates, etc. for the WPF controls, then please take a look at the Themes page at MSDN.

I believe that the latest ones can be found on the WPF Document Samples page at MSDN.

However, I cannot confirm that these come from the Microsoft.Windows.Themes dll, so this might not be what you are after.