Files
ShrlAlgoToolkit/WPFDark/StandardControls/Popup.xaml

29 lines
1.6 KiB
Plaintext
Raw Normal View History

2025-07-11 09:20:23 +08:00
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wpf="clr-namespace:WPFDark"
xmlns:controls="clr-namespace:WPFDark.Controls">
<Style TargetType="{x:Type Popup}">
<Setter Property="TextElement.FontFamily" Value="{DynamicResource WPFDarkFontFamily}" />
<Setter Property="TextOptions.TextRenderingMode" Value="Auto" />
<Setter Property="TextOptions.TextFormattingMode" Value="Ideal" />
<Setter Property="TextOptions.TextHintingMode" Value="Animated" />
<Setter Property="Child">
<Setter.Value>
<controls:BiaClippingBorder Margin="0,0,8,8"
Background="{DynamicResource SemiactiveBackgroundBrushKey}"
BorderBrush="{DynamicResource SemiactiveBorderBrushKey}"
BorderThickness="1"
CornerRadius="{x:Static wpf:Boxes.GroupCornerRadius}">
<ContentPresenter HorizontalAlignment="Left"
VerticalAlignment="Top"
SnapsToDevicePixels="True" />
<controls:BiaClippingBorder.Effect>
<DropShadowEffect ShadowDepth="2.0" Color="Black" />
</controls:BiaClippingBorder.Effect>
</controls:BiaClippingBorder>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>