我开发一个WPF中的
项目并在App.xaml中添加在XAML中的造型文件
<application x:class="JIMS.App" xmlns:x="#unknown">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="Home.xaml">
<application.resources>
<resourcedictionary source="Skins/Style.xaml" />
</application.resources>
</application>
然后在Style.xaml作为
{C}
对于某些控件,我已经不使用风格的关键,并给作为,控制iteslf的目标......我想这种风格被应用到我的项目中的所有控件...
<Style TargetType="{x:Type TextBox}">
<setter property="Height" value="25"></setter>
<setter property="BorderBrush" value="#444444"></setter>
<setter property="Margin" value="0,2,0,2"></setter>
</Style>
但这种风格不残差即使我能看到在Visual Studio设计器"窗口的应用风格的应用程序中的所有控制,但没有运行时的结果