63 lines
3.0 KiB
XML
63 lines
3.0 KiB
XML
<!--
|
|
This Source Code Form is subject to the terms of the MIT License.
|
|
If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
|
|
Copyright (C) Leszek Pomianowski and WPF UI Contributors.
|
|
All Rights Reserved.
|
|
-->
|
|
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<Style x:Key="DefaultToolTipStyle" TargetType="{x:Type ToolTip}">
|
|
<Setter Property="MaxWidth" Value="600" />
|
|
<Setter Property="Height" Value="Auto" />
|
|
<Setter Property="Width" Value="Auto" />
|
|
<Setter Property="TextElement.FontSize" Value="12" />
|
|
<Setter Property="TextBlock.TextAlignment" Value="Justify" />
|
|
<Setter Property="TextElement.Foreground" Value="{DynamicResource ToolTipForeground}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" />
|
|
<Setter Property="Background" Value="{DynamicResource ToolTipBackground}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ToolTipBorderBrush}" />
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
|
<Setter Property="OverridesDefaultStyle" Value="True" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ToolTip">
|
|
<Border
|
|
Name="Border"
|
|
Width="{TemplateBinding Width}"
|
|
Height="{TemplateBinding Height}"
|
|
MaxWidth="{TemplateBinding MaxWidth}"
|
|
Padding="8"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="4"
|
|
SnapsToDevicePixels="True">
|
|
<Border.Effect>
|
|
<DropShadowEffect
|
|
BlurRadius="30"
|
|
Direction="0"
|
|
Opacity="0.4"
|
|
ShadowDepth="0"
|
|
Color="#202020" />
|
|
</Border.Effect>
|
|
<ContentPresenter
|
|
Margin="4"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top">
|
|
<ContentPresenter.Resources>
|
|
<Style TargetType="{x:Type TextBlock}">
|
|
<Setter Property="TextWrapping" Value="WrapWithOverflow" />
|
|
</Style>
|
|
</ContentPresenter.Resources>
|
|
</ContentPresenter>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style BasedOn="{StaticResource DefaultToolTipStyle}" TargetType="{x:Type ToolTip}" />
|
|
|
|
</ResourceDictionary>
|