WatermarkBaseStyle.xaml 865 B

1234567891011121314151617181920
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:hc="clr-namespace:HandyControl.Controls">
  4. <Style x:Key="WatermarkBaseStyle" TargetType="hc:Watermark">
  5. <Setter Property="MarkBrush" Value="{DynamicResource DarkMaskBrush}"/>
  6. <Setter Property="Foreground" Value="{DynamicResource DarkMaskBrush}"/>
  7. <Setter Property="Angle" Value="20"/>
  8. <Setter Property="Template">
  9. <Setter.Value>
  10. <ControlTemplate TargetType="hc:Watermark">
  11. <Border Name="PART_Root">
  12. <ContentPresenter/>
  13. </Border>
  14. </ControlTemplate>
  15. </Setter.Value>
  16. </Setter>
  17. </Style>
  18. </ResourceDictionary>