GotoTopBaseStyle.xaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  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="GotoTopBaseStyle" BasedOn="{StaticResource ButtonBaseStyle}" TargetType="hc:GotoTop">
  5. <Setter Property="Width" Value="50"/>
  6. <Setter Property="Height" Value="50"/>
  7. <Setter Property="hc:BorderElement.CornerRadius" Value="25"/>
  8. <Setter Property="hc:IconElement.Geometry" Value="{StaticResource UpGeometry}"/>
  9. <Setter Property="Foreground" Value="{DynamicResource PrimaryTextBrush}"/>
  10. <Setter Property="Padding" Value="16"/>
  11. <Setter Property="BorderThickness" Value="1"/>
  12. <Setter Property="FocusVisualStyle">
  13. <Setter.Value>
  14. <Style>
  15. <Setter Property="Control.Template">
  16. <Setter.Value>
  17. <ControlTemplate>
  18. <Rectangle Style="{StaticResource RectangleFocusVisualCircular}"/>
  19. </ControlTemplate>
  20. </Setter.Value>
  21. </Setter>
  22. </Style>
  23. </Setter.Value>
  24. </Setter>
  25. <Style.Triggers>
  26. <Trigger Property="IsMouseOver" Value="True">
  27. <Setter Property="Background" Value="{DynamicResource SecondaryRegionBrush}"/>
  28. </Trigger>
  29. <Trigger Property="IsPressed" Value="True">
  30. <Setter Property="Background" Value="{DynamicResource BorderBrush}"/>
  31. </Trigger>
  32. </Style.Triggers>
  33. </Style>
  34. </ResourceDictionary>