更新
This commit is contained in:
@@ -1,21 +1,11 @@
|
||||
<!--
|
||||
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.
|
||||
|
||||
Based on Microsoft XAML for Win UI
|
||||
Copyright (c) Microsoft Corporation. All Rights Reserved.
|
||||
-->
|
||||
|
||||
<ResourceDictionary
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:WPFluent.Controls">
|
||||
xmlns:controls="clr-namespace:WPFluent.Controls"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style x:Key="DefaultFlyoutStyle" TargetType="{x:Type controls:Flyout}">
|
||||
<Setter Property="Background" Value="{DynamicResource FlyoutBackground}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource FlyoutBorderBrush}" />
|
||||
<Style TargetType="{x:Type controls:Flyout}" x:Key="DefaultFlyoutStyle">
|
||||
<Setter Property="Background" Value="{DynamicResource AcrylicBackgroundFillColorDefaultBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource SurfaceStrokeColorFlyoutBrush}" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="MinWidth" Value="20" />
|
||||
<Setter Property="MinHeight" Value="20" />
|
||||
@@ -38,29 +28,29 @@
|
||||
<ControlTemplate TargetType="{x:Type controls:Flyout}">
|
||||
<Grid>
|
||||
<Popup
|
||||
x:Name="PART_Popup"
|
||||
MinWidth="{TemplateBinding MinWidth}"
|
||||
MinHeight="{TemplateBinding MinHeight}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
||||
AllowsTransparency="{TemplateBinding Popup.AllowsTransparency}"
|
||||
Focusable="False"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
||||
IsOpen="{TemplateBinding IsOpen}"
|
||||
MinHeight="{TemplateBinding MinHeight}"
|
||||
MinWidth="{TemplateBinding MinWidth}"
|
||||
Placement="{TemplateBinding Placement}"
|
||||
PopupAnimation="{TemplateBinding Popup.PopupAnimation}"
|
||||
StaysOpen="{TemplateBinding Popup.StaysOpen}"
|
||||
VerticalOffset="1">
|
||||
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
||||
VerticalOffset="1"
|
||||
x:Name="PART_Popup">
|
||||
<Border
|
||||
x:Name="PopupBorder"
|
||||
Margin="{TemplateBinding Margin}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="1"
|
||||
CornerRadius="{DynamicResource PopupCornerRadius}"
|
||||
SnapsToDevicePixels="True">
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
Margin="{TemplateBinding Margin}"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="True"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
x:Name="PopupBorder">
|
||||
<ContentPresenter Content="{TemplateBinding Content}" />
|
||||
</Border>
|
||||
</Popup>
|
||||
|
||||
Reference in New Issue
Block a user