|
@@ -7,14 +7,14 @@
|
|
|
<Style x:Key="StyleBase" TargetType="{x:Type sv:WindowBase}" BasedOn="{StaticResource {x:Type Window}}">
|
|
<Style x:Key="StyleBase" TargetType="{x:Type sv:WindowBase}" BasedOn="{StaticResource {x:Type Window}}">
|
|
|
<Setter Property="Window.WindowStyle" Value="None"/>
|
|
<Setter Property="Window.WindowStyle" Value="None"/>
|
|
|
<Setter Property="AllowsTransparency" Value="True"/>
|
|
<Setter Property="AllowsTransparency" Value="True"/>
|
|
|
- <Setter Property="MinHeight" Value="200"/>
|
|
|
|
|
- <Setter Property="MinWidth" Value="200"/>
|
|
|
|
|
- <Setter Property="IsTabStop" Value="False" />
|
|
|
|
|
|
|
+ <Setter Property="MinHeight" Value="300"/>
|
|
|
|
|
+ <Setter Property="MinWidth" Value="300"/>
|
|
|
|
|
+ <!--解决字体模糊-->
|
|
|
<Setter Property="TextOptions.TextFormattingMode" Value="Display" />
|
|
<Setter Property="TextOptions.TextFormattingMode" Value="Display" />
|
|
|
<Setter Property="FontFamily" Value="{DynamicResource AllFontFamily}"/>
|
|
<Setter Property="FontFamily" Value="{DynamicResource AllFontFamily}"/>
|
|
|
<Setter Property="WindowChrome.WindowChrome">
|
|
<Setter Property="WindowChrome.WindowChrome">
|
|
|
<Setter.Value>
|
|
<Setter.Value>
|
|
|
- <WindowChrome CornerRadius="{DynamicResource WindowCornerRadius}" CaptionHeight="{DynamicResource TitleHeight}" GlassFrameThickness="0" ResizeBorderThickness="10" UseAeroCaptionButtons="False" NonClientFrameEdges="None"/>
|
|
|
|
|
|
|
+ <WindowChrome CornerRadius="{DynamicResource WindowCornerRadius}" CaptionHeight="{DynamicResource TitleHeight}" GlassFrameThickness="10" ResizeBorderThickness="10" UseAeroCaptionButtons="False" NonClientFrameEdges="None"/>
|
|
|
</Setter.Value>
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
</Setter>
|
|
|
<Setter Property="Template">
|
|
<Setter Property="Template">
|
|
@@ -32,7 +32,7 @@
|
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
|
<!--标题-->
|
|
<!--标题-->
|
|
|
- <Border Height="{DynamicResource TitleHeight}" Name="PART_Caption" Grid.Row="0" CornerRadius="{DynamicResource TopCornerRadius}" Background="{DynamicResource CaptionActiveBackgroundBrush}">
|
|
|
|
|
|
|
+ <Border Height="{DynamicResource TitleHeight}" Name="PART_Caption" Grid.Row="0" CornerRadius="{DynamicResource TopCornerRadius}" Background="{DynamicResource CaptionActiveBackgroundBrush}">
|
|
|
<Border.Effect>
|
|
<Border.Effect>
|
|
|
<DropShadowEffect BlurRadius="{DynamicResource Title.DropShadowEffect.BlurRadius}" ShadowDepth="{DynamicResource Title.DropShadowEffect.ShadowDepth}" Opacity="{DynamicResource Title.DropShadowEffect.Opacity}" />
|
|
<DropShadowEffect BlurRadius="{DynamicResource Title.DropShadowEffect.BlurRadius}" ShadowDepth="{DynamicResource Title.DropShadowEffect.ShadowDepth}" Opacity="{DynamicResource Title.DropShadowEffect.Opacity}" />
|
|
|
</Border.Effect>
|
|
</Border.Effect>
|
|
@@ -88,18 +88,15 @@
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
<!--窗体移动工具-->
|
|
<!--窗体移动工具-->
|
|
|
- <Border Name="WindowMoveGripper" CornerRadius="{DynamicResource TopCornerRadius}" Grid.Column="0" Grid.ColumnSpan="2" Margin="3,3,0,0">
|
|
|
|
|
|
|
+ <Border Name="WindowMoveGripper" CornerRadius="{DynamicResource TopCornerRadius}" Grid.Column="0" Grid.ColumnSpan="2" Margin="3,3,0,0" >
|
|
|
<Rectangle IsHitTestVisible="False" Focusable="False" Fill="Transparent"/>
|
|
<Rectangle IsHitTestVisible="False" Focusable="False" Fill="Transparent"/>
|
|
|
</Border>
|
|
</Border>
|
|
|
</Grid>
|
|
</Grid>
|
|
|
</Border>
|
|
</Border>
|
|
|
<!--内容-->
|
|
<!--内容-->
|
|
|
- <AdornerDecorator KeyboardNavigation.IsTabStop="False" Grid.Row="1">
|
|
|
|
|
- <Border Name="PART_ClientArea">
|
|
|
|
|
- <ContentPresenter KeyboardNavigation.TabNavigation="Cycle" Content="{TemplateBinding Content}" />
|
|
|
|
|
- </Border>
|
|
|
|
|
- </AdornerDecorator>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <Border Name="PART_ClientArea" Grid.Row="1">
|
|
|
|
|
+ <ContentPresenter KeyboardNavigation.TabNavigation="Cycle" Content="{TemplateBinding Content}" />
|
|
|
|
|
+ </Border>
|
|
|
<!--版本-->
|
|
<!--版本-->
|
|
|
<Border Grid.Row="2" Height="{DynamicResource VerHeight}" VerticalAlignment="Bottom" CornerRadius="{DynamicResource DownCornerRadius}" Background="{DynamicResource VerBackgroundBrush}" Name="PART_Ver">
|
|
<Border Grid.Row="2" Height="{DynamicResource VerHeight}" VerticalAlignment="Bottom" CornerRadius="{DynamicResource DownCornerRadius}" Background="{DynamicResource VerBackgroundBrush}" Name="PART_Ver">
|
|
|
<Border.Effect>
|
|
<Border.Effect>
|