Files
aistudio-wpf-diagram/AIStudio.Wpf.DiagramDesigner/Styles/ToolTip.xaml

38 lines
1.6 KiB
Plaintext
Raw Normal View History

2022-12-02 23:06:31 +08:00
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
2022-12-05 22:48:00 +08:00
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Shared.xaml" />
</ResourceDictionary.MergedDictionaries>
2022-12-02 23:06:31 +08:00
2022-12-05 22:48:00 +08:00
<!-- SimpleStyles: ToolTip -->
<Style x:Key="{x:Type ToolTip}" TargetType="ToolTip">
<Setter Property="OverridesDefaultStyle" Value="true"/>
<Setter Property="HasDropShadow" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToolTip">
<Border Name="Border"
2022-12-02 23:06:31 +08:00
Background="{StaticResource LightBrush}"
BorderBrush="{StaticResource SolidBorderBrush}"
BorderThickness="1"
Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}">
2022-12-05 22:48:00 +08:00
<ContentPresenter
2022-12-02 23:06:31 +08:00
Margin="4"
HorizontalAlignment="Left"
VerticalAlignment="Top" />
2022-12-05 22:48:00 +08:00
</Border>
<ControlTemplate.Triggers>
<Trigger Property="HasDropShadow" Value="true">
<Setter TargetName="Border" Property="CornerRadius" Value="4"/>
<Setter TargetName="Border" Property="SnapsToDevicePixels" Value="true"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
2022-12-02 23:06:31 +08:00
</ResourceDictionary>