MainStyle.xaml 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3. <Style TargetType="{x:Type Label}">
  4. <Setter Property="Background" Value="Transparent"/>
  5. <Setter Property="Padding" Value="0"/>
  6. </Style>
  7. <Style TargetType="{x:Type Frame}">
  8. <Setter Property="Background" Value="#ddd"/>
  9. <Setter Property="Margin" Value="8"/>
  10. </Style>
  11. <Style x:Key="NavButton" TargetType="{x:Type Button}">
  12. <Setter Property="Margin" Value="0,8"/>
  13. </Style>
  14. <Style x:Key="ValidationFail" TargetType="{x:Type TextBox}">
  15. <Style.Triggers>
  16. <Trigger Property="Validation.HasError" Value="True">
  17. <Setter Property="Background" Value="Red"/>
  18. <Setter Property="BorderThickness" Value="1" />
  19. <Setter
  20. Property="ToolTip"
  21. Value="{Binding RelativeSource={RelativeSource Self},
  22. Path=(Validation.Errors)[0].ErrorContent}"/>
  23. </Trigger>
  24. </Style.Triggers>
  25. </Style>
  26. </ResourceDictionary>