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,20 +1,13 @@
<!--
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:controls="clr-namespace:WPFluent.Controls"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style TargetType="{x:Type controls:RatingControl}">
<!-- Universal WPF UI focus -->
<Setter Property="FocusVisualStyle" Value="{DynamicResource DefaultControlFocusVisualStyle}" />
<!-- Universal WPF UI focus -->
<Setter Property="Foreground" Value="{DynamicResource RatingControlSelectedForeground}" />
<Setter Property="Foreground" Value="{DynamicResource SystemFillColorAttentionBrush}" />
<Setter Property="FontSize" Value="20" />
<Setter Property="HorizontalAlignment" Value="Left" />
@@ -35,10 +28,10 @@
</Grid.ColumnDefinitions>
<Grid
x:Name="StarsContainer"
Grid.Column="0"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
x:Name="StarsContainer">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
@@ -48,51 +41,51 @@
</Grid.ColumnDefinitions>
<controls:SymbolIcon
x:Name="PART_Star1"
FontSize="{TemplateBinding FontSize}"
Foreground="{TemplateBinding Foreground}"
Grid.Column="0"
Symbol="Star28"
x:Name="PART_Star1" />
<controls:SymbolIcon
FontSize="{TemplateBinding FontSize}"
Foreground="{TemplateBinding Foreground}"
Symbol="Star28" />
<controls:SymbolIcon
x:Name="PART_Star2"
Grid.Column="1"
Symbol="Star28"
x:Name="PART_Star2" />
<controls:SymbolIcon
FontSize="{TemplateBinding FontSize}"
Foreground="{TemplateBinding Foreground}"
Symbol="Star28" />
<controls:SymbolIcon
x:Name="PART_Star3"
Grid.Column="2"
Symbol="Star28"
x:Name="PART_Star3" />
<controls:SymbolIcon
FontSize="{TemplateBinding FontSize}"
Foreground="{TemplateBinding Foreground}"
Symbol="Star28" />
<controls:SymbolIcon
x:Name="PART_Star4"
Grid.Column="3"
FontSize="{TemplateBinding FontSize}"
Foreground="{TemplateBinding Foreground}"
Symbol="Star28" />
Symbol="Star28"
x:Name="PART_Star4" />
<controls:SymbolIcon
x:Name="PART_Star5"
Grid.Column="4"
FontSize="{TemplateBinding FontSize}"
Foreground="{TemplateBinding Foreground}"
Symbol="Star28" />
Grid.Column="4"
Symbol="Star28"
x:Name="PART_Star5" />
</Grid>
<Grid
x:Name="ContentGrid"
Grid.Column="1"
Margin="8,0,0,0"
VerticalAlignment="Center">
VerticalAlignment="Center"
x:Name="ContentGrid">
<ContentPresenter TextElement.FontSize="13" TextElement.Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
</Grid>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Content" Value="{x:Null}">
<Setter TargetName="ContentGrid" Property="Margin" Value="0" />
<Setter Property="Margin" TargetName="ContentGrid" Value="0" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="StarsContainer" Property="Opacity" Value="0.5" />
<Setter Property="Opacity" TargetName="StarsContainer" Value="0.5" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>