Add a border around dialogs with CanResize=true
This commit is contained in:
parent
ac036f65f1
commit
981a183992
@ -97,10 +97,13 @@
|
|||||||
</Setter>
|
</Setter>
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^[UseCustomTitleBar=true]">
|
<Style Selector="^[UseCustomTitleBar=true]">
|
||||||
|
<Style Selector="^[CanResize=false] Border#DialogWindowFormBorder">
|
||||||
|
<Setter Property="BorderThickness" Value="2" />
|
||||||
|
</Style>
|
||||||
<Setter Property="SystemDecorations" Value="BorderOnly"/>
|
<Setter Property="SystemDecorations" Value="BorderOnly"/>
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<Panel Background="{DynamicResource SystemControlBackgroundAltHighBrush}">
|
<Border Name="DialogWindowFormBorder" BorderBrush="{DynamicResource SystemBaseMediumLowColor}" Background="{DynamicResource SystemControlBackgroundAltHighBrush}">
|
||||||
<Grid RowDefinitions="30,*">
|
<Grid RowDefinitions="30,*">
|
||||||
<Border Name="DialogWindowTitleBorder" Margin="5,0" Background="{DynamicResource SystemAltMediumColor}">
|
<Border Name="DialogWindowTitleBorder" Margin="5,0" Background="{DynamicResource SystemAltMediumColor}">
|
||||||
<Border.Styles>
|
<Border.Styles>
|
||||||
@ -134,7 +137,7 @@
|
|||||||
<Path Stroke="{DynamicResource SystemBaseMediumLowColor}" StrokeThickness="1" VerticalAlignment="Bottom" Stretch="Fill" Data="M0,0 L1,0" />
|
<Path Stroke="{DynamicResource SystemBaseMediumLowColor}" StrokeThickness="1" VerticalAlignment="Bottom" Stretch="Fill" Data="M0,0 L1,0" />
|
||||||
<ContentPresenter Grid.Row="1" Content="{TemplateBinding Content}" />
|
<ContentPresenter Grid.Row="1" Content="{TemplateBinding Content}" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Panel>
|
</Border>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
</Style>
|
</Style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user