You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 line
2.6 KiB

  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:bpa="clr-namespace:BPA.UIControl">
  4. <ResourceDictionary.MergedDictionaries>
  5. <ResourceDictionary Source="pack://application:,,,/BPA.UIControl;component/Themes/Resources/Default.xaml" />
  6. </ResourceDictionary.MergedDictionaries>
  7. <Style x:Key="RubyerToolTip" TargetType="ToolTip">
  8. <Setter Property="Background" Value="{DynamicResource FloatBackground}" />
  9. <Setter Property="Foreground" Value="{DynamicResource DefaultForeground}" />
  10. <Setter Property="HasDropShadow" Value="True" />
  11. <Setter Property="OverridesDefaultStyle" Value="true" />
  12. <Setter Property="Padding" Value="10 5" />
  13. <Setter Property="Margin" Value="5" />
  14. <Setter Property="Template">
  15. <Setter.Value>
  16. <ControlTemplate TargetType="ToolTip">
  17. <Grid>
  18. <Border Name="Effect"
  19. Width="{TemplateBinding Width}"
  20. Height="{TemplateBinding Height}"
  21. Background="{TemplateBinding Background}"
  22. BorderThickness="{TemplateBinding BorderThickness}"
  23. CornerRadius="{DynamicResource AllContainerCornerRadius}"
  24. Effect="{DynamicResource AllDirectionEffect2}" />
  25. <Border Name="Border"
  26. Width="{TemplateBinding Width}"
  27. Height="{TemplateBinding Height}"
  28. Background="{TemplateBinding Background}"
  29. BorderThickness="{TemplateBinding BorderThickness}"
  30. CornerRadius="{DynamicResource AllContainerCornerRadius}">
  31. <ContentPresenter Margin="{TemplateBinding Padding}"
  32. HorizontalAlignment="Left"
  33. VerticalAlignment="Top" />
  34. </Border>
  35. </Grid>
  36. <ControlTemplate.Triggers>
  37. <Trigger Property="HasDropShadow" Value="true">
  38. <Setter TargetName="Border" Property="SnapsToDevicePixels" Value="true" />
  39. </Trigger>
  40. </ControlTemplate.Triggers>
  41. </ControlTemplate>
  42. </Setter.Value>
  43. </Setter>
  44. </Style>
  45. </ResourceDictionary>