命名调整
This commit is contained in:
@@ -107,29 +107,6 @@ namespace ShrlAlgo.Toolkit.Wpf.Controls
|
||||
SetValue(TitleTemplateProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
///// <summary>
|
||||
///// The icon inside the window's title bar.
|
||||
///// </summary>
|
||||
//public static readonly DependencyProperty TitleBarIconProperty = DependencyProperty.Register(
|
||||
// nameof(TitleBarIcon), typeof(ImageSource), typeof(MaterialWindow), new FrameworkPropertyMetadata(null, null));
|
||||
|
||||
///// <summary>
|
||||
///// The icon inside the window's title bar.
|
||||
///// </summary>
|
||||
//public ImageSource TitleBarIcon
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return (ImageSource)GetValue(TitleBarIconProperty);
|
||||
// }
|
||||
|
||||
// set
|
||||
// {
|
||||
// SetValue(TitleBarIconProperty, value);
|
||||
// }
|
||||
//}
|
||||
|
||||
private Button m_minimizeButton;
|
||||
private Button m_maximizeRestoreButton;
|
||||
private Button m_closeButton;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +0,0 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -17,51 +17,4 @@
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
<DrawingImage x:Key="WindowMaximizeIcon">
|
||||
<!--<DrawingImage.Drawing>
|
||||
<DrawingGroup ClipGeometry="M0,0 V24 H24 V0 H0 Z">
|
||||
<GeometryDrawing Brush="{DynamicResource ForegroundDarkColor}" Geometry="F1 M24,24z M0,0z M4,4L20,4 20,20 4,20 4,4 M6,8L6,18 18,18 18,8 6,8z" />
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>-->
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup ClipGeometry="M0,0 V1024 H1024 V0 H0 Z">
|
||||
<GeometryDrawing Brush="{DynamicResource BackgroundColor}" Geometry="F1 M1024,1024z M0,0z M256,597.333333C232.533333,597.333333,213.333333,616.533333,213.333333,640L213.333333,768C213.333333,791.466667,232.533333,810.666667,256,810.666667L384,810.666667C407.466667,810.666667 426.666667,791.466667 426.666667,768 426.666667,744.533333 407.466667,725.333333 384,725.333333L298.666667,725.333333 298.666667,640C298.666667,616.533333,279.466667,597.333333,256,597.333333z M256,426.666667C279.466667,426.666667,298.666667,407.466667,298.666667,384L298.666667,298.666667 384,298.666667C407.466667,298.666667 426.666667,279.466667 426.666667,256 426.666667,232.533333 407.466667,213.333333 384,213.333333L256,213.333333C232.533333,213.333333,213.333333,232.533333,213.333333,256L213.333333,384C213.333333,407.466667,232.533333,426.666667,256,426.666667z M725.333333,725.333333L640,725.333333C616.533333,725.333333 597.333333,744.533333 597.333333,768 597.333333,791.466667 616.533333,810.666667 640,810.666667L768,810.666667C791.466667,810.666667,810.666667,791.466667,810.666667,768L810.666667,640C810.666667,616.533333 791.466667,597.333333 768,597.333333 744.533333,597.333333 725.333333,616.533333 725.333333,640L725.333333,725.333333z M597.333333,256C597.333333,279.466667,616.533333,298.666667,640,298.666667L725.333333,298.666667 725.333333,384C725.333333,407.466667 744.533333,426.666667 768,426.666667 791.466667,426.666667 810.666667,407.466667 810.666667,384L810.666667,256C810.666667,232.533333,791.466667,213.333333,768,213.333333L640,213.333333C616.533333,213.333333,597.333333,232.533333,597.333333,256z" />
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
<DrawingImage x:Key="WindowRestoreIcon">
|
||||
<!--<DrawingImage.Drawing>
|
||||
<DrawingGroup ClipGeometry="M0,0 V24 H24 V0 H0 Z" >
|
||||
<GeometryDrawing Brush="{DynamicResource ForegroundDarkColor}" Geometry="F1 M24,24z M0,0z M4,8L8,8 8,4 20,4 20,16 16,16 16,20 4,20 4,8 M16,8L16,14 18,14 18,6 10,6 10,8 16,8 M6,12L6,18 14,18 14,12 6,12z" />
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>-->
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup ClipGeometry="M0,0 V1024 H1024 V0 H0 Z">
|
||||
<GeometryDrawing Brush="{DynamicResource BackgroundColor}" Geometry="F1 M1024,1024z M0,0z M256,682.666667L341.333333,682.666667 341.333333,768C341.333333,791.466667 360.533333,810.666667 384,810.666667 407.466667,810.666667 426.666667,791.466667 426.666667,768L426.666667,640C426.666667,616.533333,407.466667,597.333333,384,597.333333L256,597.333333C232.533333,597.333333 213.333333,616.533333 213.333333,640 213.333333,663.466667 232.533333,682.666667 256,682.666667z M341.333333,341.333333L256,341.333333C232.533333,341.333333 213.333333,360.533333 213.333333,384 213.333333,407.466667 232.533333,426.666667 256,426.666667L384,426.666667C407.466667,426.666667,426.666667,407.466667,426.666667,384L426.666667,256C426.666667,232.533333 407.466667,213.333333 384,213.333333 360.533333,213.333333 341.333333,232.533333 341.333333,256L341.333333,341.333333z M640,810.666667C663.466667,810.666667,682.666667,791.466667,682.666667,768L682.666667,682.666667 768,682.666667C791.466667,682.666667 810.666667,663.466667 810.666667,640 810.666667,616.533333 791.466667,597.333333 768,597.333333L640,597.333333C616.533333,597.333333,597.333333,616.533333,597.333333,640L597.333333,768C597.333333,791.466667,616.533333,810.666667,640,810.666667z M682.666667,341.333333L682.666667,256C682.666667,232.533333 663.466667,213.333333 640,213.333333 616.533333,213.333333 597.333333,232.533333 597.333333,256L597.333333,384C597.333333,407.466667,616.533333,426.666667,640,426.666667L768,426.666667C791.466667,426.666667 810.666667,407.466667 810.666667,384 810.666667,360.533333 791.466667,341.333333 768,341.333333L682.666667,341.333333z" />
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
<DrawingImage x:Key="WindowMinimizeIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup ClipGeometry="M0,0 V1024 H1024 V0 H0 Z">
|
||||
<GeometryDrawing Brush="{DynamicResource BackgroundColor}" Geometry="F1 M1024,1024z M0,0z M298.666667,469.333333L725.333333,469.333333C746.666666,469.333333 768,486.4 768,512 768,537.6 746.666667,554.666667 725.333333,554.666667L298.666667,554.666667C273.066667,554.666667 256,537.6 256,512 256,486.4 273.066667,469.333333 298.666667,469.333333z" />
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
<DrawingImage x:Key="WindowCloseIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup ClipGeometry="M0,0 V1024 H1024 V0 H0 Z">
|
||||
<GeometryDrawing Brush="{DynamicResource BackgroundColor}" Geometry="F1 M1024,1024z M0,0z M780.8,243.626667A41.984,41.984,0,0,0,750.933333,231.253333C739.84,231.253333,728.746666,235.946666,721.066667,243.626667L512,451.84 303.36,243.2A41.984,41.984,0,0,0,273.493333,230.826667C262.4,230.826667,251.306666,235.52,243.2,243.2A42.496,42.496,0,0,0,243.2,303.36L451.84,512 243.2,720.64A42.496,42.496,0,1,0,303.36,780.8L512,572.16 720.64,780.8A42.496,42.496,0,1,0,780.8,720.64L572.16,512 780.8,303.36C797.013333,287.146667,797.013333,259.84,780.8,243.626667z" />
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
<!--<DrawingImage x:Key="WindowCloseMouseOverIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup ClipGeometry="M0,0 V1024 H1024 V0 H0 Z">
|
||||
<GeometryDrawing Brush="{DynamicResource BackgroundColor}" Geometry="F1 M1024,1024z M0,0z M780.8,243.626667A41.984,41.984,0,0,0,750.933333,231.253333C739.84,231.253333,728.746666,235.946666,721.066667,243.626667L512,451.84 303.36,243.2A41.984,41.984,0,0,0,273.493333,230.826667C262.4,230.826667,251.306666,235.52,243.2,243.2A42.496,42.496,0,0,0,243.2,303.36L451.84,512 243.2,720.64A42.496,42.496,0,1,0,303.36,780.8L512,572.16 720.64,780.8A42.496,42.496,0,1,0,780.8,720.64L572.16,512 780.8,303.36C797.013333,287.146667,797.013333,259.84,780.8,243.626667z" />
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>-->
|
||||
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -1354,64 +1354,6 @@
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- Menu Style 全面重写,提升整体感和圆角 -->
|
||||
<Style
|
||||
BasedOn="{StaticResource GlassBase}"
|
||||
TargetType="Menu"
|
||||
x:Key="GlassMenu">
|
||||
<Setter Property="Background" Value="{StaticResource GlassGradientBrushHorizontal}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Padding" Value="4" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Menu">
|
||||
<Border
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="6">
|
||||
<StackPanel IsItemsHost="True" Orientation="Horizontal" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<Style TargetType="MenuItem" x:Key="GlassMenuItem">
|
||||
<Setter Property="Background" Value="{StaticResource GlassGradientBrushHorizontal}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource GlassBorderBrush}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="FontSize" Value="13" />
|
||||
<Setter Property="Foreground" Value="{StaticResource PrimaryTextBrush}" />
|
||||
<Setter Property="Margin" Value="2,2,2,2" />
|
||||
<Setter Property="Padding" Value="10,6" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="MenuItem">
|
||||
<Border
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="5"
|
||||
x:Name="Bd">
|
||||
<Grid>
|
||||
<ContentPresenter
|
||||
ContentSource="Header"
|
||||
Margin="8,0,8,0"
|
||||
VerticalAlignment="Center" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsHighlighted" Value="True">
|
||||
<Setter Property="Background" TargetName="Bd" Value="#33B0E0FF" />
|
||||
<Setter Property="Foreground" Value="#FF222222" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- TabControl/TabItem Style 全面重写,修复内容显示和Header对齐 -->
|
||||
<Style
|
||||
BasedOn="{StaticResource GlassBase}"
|
||||
@@ -1444,68 +1386,4 @@
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
<!-- TabItem Style 优化 -->
|
||||
<Style TargetType="TabItem" x:Key="GlassTabItem">
|
||||
<Setter Property="Background" Value="{StaticResource GlassGradientBrush}" />
|
||||
<Setter Property="BorderBrush" Value="#B0E0FF" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="FontSize" Value="16" />
|
||||
<Setter Property="FontWeight" Value="SemiBold" />
|
||||
<Setter Property="Foreground" Value="{StaticResource PrimaryTextBrush}" />
|
||||
<Setter Property="Margin" Value="2,0,2,0" />
|
||||
<Setter Property="Padding" Value="20,10" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="TabItem">
|
||||
<Border
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="8,8,0,0"
|
||||
Margin="2,2,2,0"
|
||||
x:Name="Bd">
|
||||
<ContentPresenter
|
||||
ContentSource="Header"
|
||||
HorizontalAlignment="Center"
|
||||
RecognizesAccessKey="True"
|
||||
VerticalAlignment="Center"
|
||||
x:Name="ContentSite" />
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Setter Property="Background" TargetName="Bd" Value="#33B0E0FF" />
|
||||
<Setter Property="BorderBrush" TargetName="Bd" Value="#B0E0FF" />
|
||||
<Setter Property="Foreground" Value="#FF222222" />
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" TargetName="Bd" Value="#11FFFFFF" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- ToolBar Style 全面重写,提升整体感和圆角 -->
|
||||
<Style
|
||||
BasedOn="{StaticResource GlassBase}"
|
||||
TargetType="ToolBar"
|
||||
x:Key="GlassToolBar">
|
||||
<Setter Property="Background" Value="{StaticResource GlassGradientBrushHorizontal}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Padding" Value="4" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ToolBar">
|
||||
<Border
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="6">
|
||||
<StackPanel IsItemsHost="True" Orientation="Horizontal" />
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
Reference in New Issue
Block a user