|
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:bpa="clr-namespace:BPA.UIControl">
-
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/BPA.UIControl;component/Themes/Resources/Default.xaml" />
- </ResourceDictionary.MergedDictionaries>
-
- <Style x:Key="RubyerToolTip" TargetType="ToolTip">
- <Setter Property="Background" Value="{DynamicResource FloatBackground}" />
- <Setter Property="Foreground" Value="{DynamicResource DefaultForeground}" />
- <Setter Property="HasDropShadow" Value="True" />
- <Setter Property="OverridesDefaultStyle" Value="true" />
- <Setter Property="Padding" Value="10 5" />
- <Setter Property="Margin" Value="5" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ToolTip">
- <Grid>
- <Border Name="Effect"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Background="{TemplateBinding Background}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="{DynamicResource AllContainerCornerRadius}"
- Effect="{DynamicResource AllDirectionEffect2}" />
- <Border Name="Border"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Background="{TemplateBinding Background}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="{DynamicResource AllContainerCornerRadius}">
- <ContentPresenter Margin="{TemplateBinding Padding}"
- HorizontalAlignment="Left"
- VerticalAlignment="Top" />
- </Border>
- </Grid>
-
- <ControlTemplate.Triggers>
- <Trigger Property="HasDropShadow" Value="true">
- <Setter TargetName="Border" Property="SnapsToDevicePixels" Value="true" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|