I am developing a project in WPF
and has added a styling file in XAML in the app.xaml as
<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>
and then in the Style.xaml as
<resourcedictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<resourcedictionary.mergeddictionaries>
<resourcedictionary source="Brushes.xaml" />
<resourcedictionary source="Button.xaml" />
<resourcedictionary source="Controls.xaml" />
</resourcedictionary.mergeddictionaries>
</resourcedictionary>
For certain controls i have not used key in style and gave target as that control iteslf.. I want that style to be applied to all the controls in my project...
<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>
but this style is not appling for all the controls in the Application even though i am able to see the style applied in the Visual Studio Designer window but no result in RunTIme