wpf暴露它的默认主题已经不是什么秘密,例如这里的缩短版本 复选框模板的外观如何
xmlns:theme="clr-namespace:Microsoft.Windows.Themes"
<ControlTemplate TargetType="{x:Type CheckBox}">
<BulletDecorator>
<BulletDecorator.Bullet>
<theme:BulletChrome />
</BulletDecorator.Bullet>
<ContentPresenter />
</BulletDecorator>
</ControlTemplate>
gee ..这很棒,最有帮助(不!)
我其实想看看复选标记路径是怎样的, 有没有办法观察内在的内容:
Microsoft.Windows.Themes
答案 0 :(得分:0)
如果您正在寻找位于Style
,Template
等内部的WPF控件的默认Microsoft XAML,请查看Themes页面在MSDN。
我相信最新版本可以在MSDN的WPF Document Samples页面找到。
但是,我无法确认这些内容来自Microsoft.Windows.Themes
dll,因此可能不是您所追求的。