How to inspect Microsoft.Windows.Themes

假如想象 提交于 2019-12-24 19:22:26

问题


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:


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.



来源:https://stackoverflow.com/questions/18832352/how-to-inspect-microsoft-windows-themes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!