问题
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 Style
s, Template
s, 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