This commit is contained in:
ShrlAlgo
2025-07-11 09:20:23 +08:00
parent c7b104f44f
commit 4d35cadb56
840 changed files with 102347 additions and 11595 deletions

View File

@@ -1,16 +1,6 @@
<!--
This Source Code Form is subject to the terms of the MIT License.
If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
Copyright (C) Leszek Pomianowski and WPF UI Contributors.
All Rights Reserved.
-->
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<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">
<Style x:Key="UiGridViewColumnHeaderStyle" TargetType="GridViewColumnHeader">
<Style TargetType="GridViewColumnHeader" x:Key="UiGridViewColumnHeaderStyle">
<Style.Triggers>
<Trigger Property="GridViewColumnHeader.Role" Value="Floating">
<Setter Property="Template">
@@ -18,10 +8,10 @@
<ControlTemplate TargetType="GridViewColumnHeader">
<Canvas Name="PART_FloatingHeaderCanvas">
<Rectangle
Width="{TemplateBinding ActualWidth}"
Height="{TemplateBinding ActualHeight}"
Fill="#FF000000"
Opacity="0.5" />
Height="{TemplateBinding ActualHeight}"
Opacity="0.5"
Width="{TemplateBinding ActualWidth}" />
</Canvas>
</ControlTemplate>
</Setter.Value>
@@ -32,10 +22,10 @@
<Setter.Value>
<ControlTemplate TargetType="GridViewColumnHeader">
<Border
Name="HeaderBorder"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding Border.BorderBrush}"
BorderThickness="0,0,0,0" />
BorderThickness="0,0,0,0"
Name="HeaderBorder" />
</ControlTemplate>
</Setter.Value>
</Setter>
@@ -55,21 +45,21 @@
<ControlTemplate TargetType="GridViewColumnHeader">
<Grid>
<Border
Name="HeaderBorder"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="0,0,0,0"
CornerRadius="{DynamicResource ControlCornerRadius}">
CornerRadius="{DynamicResource ControlCornerRadius}"
Name="HeaderBorder">
<Border Margin="6,0,0,0" Padding="{TemplateBinding Padding}">
<ContentPresenter
Name="HeaderContent"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Content="{TemplateBinding Content}"
ContentStringFormat="{TemplateBinding ContentStringFormat}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
Name="HeaderContent"
RecognizesAccessKey="True"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
<!--<TextBlock Text="{TemplateBinding Content}" />-->
</Border>
</Border>
@@ -85,11 +75,11 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Thumb">
<Border Padding="{TemplateBinding Padding}" Background="#00FFFFFF">
<Border Background="#00FFFFFF" Padding="{TemplateBinding Padding}">
<Rectangle
Width="1"
Fill="{TemplateBinding Background}"
HorizontalAlignment="Center"
Fill="{TemplateBinding Background}" />
Width="1" />
</Border>
</ControlTemplate>
</Setter.Value>
@@ -101,12 +91,12 @@
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="HeaderBorder" Property="Background" Value="{DynamicResource ListViewItemBackgroundPointerOver}" />
<Setter TargetName="PART_HeaderGripper" Property="Background" Value="Transparent" />
<Setter Property="Background" TargetName="HeaderBorder" Value="{DynamicResource SubtleFillColorSecondaryBrush}" />
<Setter Property="Background" TargetName="PART_HeaderGripper" Value="Transparent" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="HeaderBorder" Property="Background" Value="Transparent" />
<Setter TargetName="PART_HeaderGripper" Property="Visibility" Value="Hidden" />
<Setter Property="Background" TargetName="HeaderBorder" Value="Transparent" />
<Setter Property="Visibility" TargetName="PART_HeaderGripper" Value="Hidden" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />

View File

@@ -1,26 +1,18 @@
<!--
This Source Code Form is subject to the terms of the MIT License.
If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
Copyright (C) Leszek Pomianowski and WPF UI Contributors.
All Rights Reserved.
-->
<ResourceDictionary
<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:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ControlTemplate x:Key="GridViewHeaderRowIndicatorTemplate" TargetType="Separator">
<ControlTemplate TargetType="Separator" x:Key="GridViewHeaderRowIndicatorTemplate">
<Border>
<Rectangle
Width="3"
Fill="{DynamicResource SystemFillColorAttentionBrush}"
Height="18"
Margin="0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Fill="{DynamicResource ListViewItemPillFillBrush}"
Margin="0"
RadiusX="2"
RadiusY="2" />
RadiusY="2"
VerticalAlignment="Center"
Width="3" />
</Border>
</ControlTemplate>
</ResourceDictionary>