70 lines
3.5 KiB
XML
70 lines
3.5 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:controls="clr-namespace:WPFluent.Controls"
|
|
xmlns:layout="clr-namespace:WPFluent.Layout"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<WindowChrome
|
|
GlassFrameThickness="-1"
|
|
NonClientFrameEdges="None"
|
|
ResizeBorderThickness="0"
|
|
UseAeroCaptionButtons="True"
|
|
x:Key="PendingBoxAeroWindowChrome"
|
|
x:Shared="False" />
|
|
|
|
<Style TargetType="{x:Type controls:PendingBoxDialog}">
|
|
<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}" />
|
|
<Setter Property="SizeToContent" Value="WidthAndHeight" />
|
|
<Setter Property="ResizeMode" Value="NoResize" />
|
|
<Setter Property="WindowStyle" Value="SingleBorderWindow" />
|
|
<Setter Property="Title" Value="{Binding Title}" />
|
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
|
<Setter Property="ShowInTaskbar" Value="True" />
|
|
<Setter Property="FontSize" Value="20" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type controls:PendingBoxDialog}">
|
|
<Grid Background="{TemplateBinding Background}" x:Name="LayoutRoot">
|
|
<layout:Grid Background="#01000000" RowDefinitions="Auto,*,Auto">
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Margin="8,8,0,0"
|
|
Text="{TemplateBinding Title}"
|
|
TextTrimming="CharacterEllipsis"
|
|
TextWrapping="NoWrap"
|
|
x:Name="PART_Title" />
|
|
<layout:Grid
|
|
ColumnDefinitions="Auto,Auto"
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
<controls:Loading
|
|
Height="{TemplateBinding LoadingSize}"
|
|
Margin="0,0,0,0"
|
|
Width="{TemplateBinding LoadingSize}"
|
|
x:Name="PART_Loading" />
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
Margin="16,0,0,0"
|
|
Text="{TemplateBinding Message}"
|
|
VerticalAlignment="Center"
|
|
x:Name="PART_Message" />
|
|
</layout:Grid>
|
|
<controls:Button
|
|
Grid.Row="2"
|
|
HorizontalAlignment="Right"
|
|
Margin="0,0,8,8"
|
|
MinWidth="80"
|
|
x:Name="PART_CancelButton" />
|
|
</layout:Grid>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</ResourceDictionary> |