mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-19 16:06:35 +08:00
43 lines
2.0 KiB
XML
43 lines
2.0 KiB
XML
<ResourceDictionary
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:CompileBindings="True">
|
|
<ControlTheme x:Key="{x:Type ToolTip}" TargetType="ToolTip">
|
|
<Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" />
|
|
<Setter Property="Background" Value="{DynamicResource ToolTipBackground}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ToolTipBorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="{DynamicResource ToolTipBorderThickness}" />
|
|
<Setter Property="Padding" Value="{DynamicResource ToolTipPadding}" />
|
|
<Setter Property="MaxWidth" Value="{DynamicResource ToolTipMaxWidth}" />
|
|
<Setter Property="CornerRadius" Value="{DynamicResource ToolTipCornerRadius}" />
|
|
<Setter Property="Opacity" Value="0" />
|
|
<Setter Property="Transitions">
|
|
<Transitions>
|
|
<DoubleTransition Property="Opacity" Duration="0:0:0.1" />
|
|
</Transitions>
|
|
</Setter>
|
|
<Setter Property="Template">
|
|
<ControlTemplate TargetType="ToolTip">
|
|
<Border
|
|
Name="PART_LayoutRoot"
|
|
Padding="{TemplateBinding Padding}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="{TemplateBinding CornerRadius}">
|
|
<ContentPresenter
|
|
Name="PART_ContentPresenter"
|
|
MaxWidth="{TemplateBinding MaxWidth}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
TextBlock.TextWrapping="Wrap" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter>
|
|
|
|
<Style Selector="^:open">
|
|
<Setter Property="Opacity" Value="1" />
|
|
</Style>
|
|
</ControlTheme>
|
|
</ResourceDictionary>
|