更新整理

This commit is contained in:
GG Z
2025-04-24 20:56:44 +08:00
parent 155cef46f8
commit 5b6d67b571
813 changed files with 14437 additions and 12362 deletions

View File

@@ -66,7 +66,7 @@ public class FontIcon : IconElement
private static void OnFontFamilyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var self = (FontIcon)d;
if(self.TextBlock is null)
if (self.TextBlock is null)
{
return;
}
@@ -77,7 +77,7 @@ public class FontIcon : IconElement
private static void OnFontSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var self = (FontIcon)d;
if(self.TextBlock is null)
if (self.TextBlock is null)
{
return;
}
@@ -88,7 +88,7 @@ public class FontIcon : IconElement
private static void OnFontStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var self = (FontIcon)d;
if(self.TextBlock is null)
if (self.TextBlock is null)
{
return;
}
@@ -99,7 +99,7 @@ public class FontIcon : IconElement
private static void OnFontWeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var self = (FontIcon)d;
if(self.TextBlock is null)
if (self.TextBlock is null)
{
return;
}
@@ -110,7 +110,7 @@ public class FontIcon : IconElement
private static void OnGlyphChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var self = (FontIcon)d;
if(self.TextBlock is null)
if (self.TextBlock is null)
{
return;
}
@@ -120,12 +120,12 @@ public class FontIcon : IconElement
protected override UIElement InitializeChildren()
{
if(FontSize.Equals(SystemFonts.MessageFontSize))
if (FontSize.Equals(SystemFonts.MessageFontSize))
{
// SetResourceReference(FontSizeProperty, "DefaultIconFontSize");
// If the FontSize is the default, set it to the parent's FontSize.
if(VisualParent is not null && TextElement.GetFontSize(VisualParent) != SystemFonts.MessageFontSize)
if (VisualParent is not null && TextElement.GetFontSize(VisualParent) != SystemFonts.MessageFontSize)
{
SetCurrentValue(FontSizeProperty, TextElement.GetFontSize(VisualParent));
}