Extend the default styles applied by SkinStorage.VisualStyle
I have applied a visual style through the static method SkinStorage.VisualStyle. For example Blend.
I override and inherit from the default style to supply tooltips for data validation errors on the textbox,
If I apply this to the forms resources, the skin storage style is removed - is there a way to do this?
<Window.Resources><Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}"><Style.Triggers><Trigger Property="Validation.HasError" Value="true"><Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self},Path=(Validation.Errors)[0].ErrorContent}"/></Trigger></Style.Triggers></Style>
</Window.Resources>
style_1a1e6bf4.zip
ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Syncfusion.Shared.WPF;component/SkinManager/MetroStyle.xaml"/>
</ResourceDictionary.MergedDictionaries>
<Style TargetType="Label" BasedOn="{StaticResource MetroLabelStyle}">
<Setter Property="HorizontalContentAlignment" Value="Right"/>
<Setter Property="Background" Value="Bisque"/>
</Style>
StyleDemo_d2d453da.zip
- 3 Replies
- 2 Participants
-
DG David Goedecke
- Feb 25, 2013 06:40 PM UTC
- Aug 29, 2013 05:33 AM UTC