更新
This commit is contained in:
@@ -1,22 +1,20 @@
|
||||
<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:primitives="clr-namespace:WPFluent.Controls.Primitives"
|
||||
xmlns:layout="clr-namespace:WPFluent.Layout"
|
||||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml">
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<WindowChrome
|
||||
x:Key="PendingBoxAeroWindowChrome"
|
||||
x:Shared="False"
|
||||
GlassFrameThickness="-1"
|
||||
NonClientFrameEdges="None"
|
||||
ResizeBorderThickness="0"
|
||||
UseAeroCaptionButtons="True" />
|
||||
UseAeroCaptionButtons="True"
|
||||
x:Key="PendingBoxAeroWindowChrome"
|
||||
x:Shared="False" />
|
||||
|
||||
<Style TargetType="{x:Type controls:PendingBoxDialog}">
|
||||
<Setter Property="Foreground" Value="{DynamicResource ContentDialogForeground}" />
|
||||
<Setter Property="Background" Value="{DynamicResource ContentDialogBackground}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextFillColorPrimaryBrush}" />
|
||||
<Setter Property="Background" Value="{DynamicResource SolidBackgroundFillColorBaseBrush}" />
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Disabled" />
|
||||
<Setter Property="WindowChrome.WindowChrome" Value="{StaticResource PendingBoxAeroWindowChrome}" />
|
||||
@@ -30,38 +28,38 @@
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type controls:PendingBoxDialog}">
|
||||
<Grid x:Name="LayoutRoot" Background="{TemplateBinding Background}">
|
||||
<Grid Background="{TemplateBinding Background}" x:Name="LayoutRoot">
|
||||
<layout:Grid Background="#01000000" RowDefinitions="Auto,*,Auto">
|
||||
<TextBlock
|
||||
x:Name="PART_Title"
|
||||
Grid.Row="0"
|
||||
Margin="8,8,0,0"
|
||||
Text="{TemplateBinding Title}"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
TextWrapping="NoWrap" />
|
||||
TextWrapping="NoWrap"
|
||||
x:Name="PART_Title" />
|
||||
<layout:Grid
|
||||
ColumnDefinitions="Auto,Auto"
|
||||
Grid.Row="1"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
ColumnDefinitions="Auto,Auto">
|
||||
VerticalAlignment="Center">
|
||||
<controls:Loading
|
||||
x:Name="PART_Loading"
|
||||
Width="{TemplateBinding LoadingSize}"
|
||||
Height="{TemplateBinding LoadingSize}"
|
||||
Margin="0,0,0,0" />
|
||||
Margin="0,0,0,0"
|
||||
Width="{TemplateBinding LoadingSize}"
|
||||
x:Name="PART_Loading" />
|
||||
<TextBlock
|
||||
x:Name="PART_Message"
|
||||
Grid.Column="1"
|
||||
Margin="16,0,0,0"
|
||||
Text="{TemplateBinding Message}"
|
||||
VerticalAlignment="Center"
|
||||
Text="{TemplateBinding Message}" />
|
||||
x:Name="PART_Message" />
|
||||
</layout:Grid>
|
||||
<controls:Button
|
||||
x:Name="PART_CancelButton"
|
||||
Grid.Row="2"
|
||||
MinWidth="80"
|
||||
HorizontalAlignment="Right"
|
||||
Margin="0,0,8,8"
|
||||
HorizontalAlignment="Right" />
|
||||
MinWidth="80"
|
||||
x:Name="PART_CancelButton" />
|
||||
</layout:Grid>
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
|
||||
Reference in New Issue
Block a user