From ab8e7dad64c8595950449a5abd7a4f29a15a6bec Mon Sep 17 00:00:00 2001 From: MartyIX <203266+MartyIX@users.noreply.github.com> Date: Tue, 4 Jun 2024 19:13:39 +0200 Subject: [PATCH] Remove not working code --- src/Core/src/Fonts/FontManager.Windows.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Core/src/Fonts/FontManager.Windows.cs b/src/Core/src/Fonts/FontManager.Windows.cs index 6acc5a3527d5..4cad39218e76 100644 --- a/src/Core/src/Fonts/FontManager.Windows.cs +++ b/src/Core/src/Fonts/FontManager.Windows.cs @@ -7,7 +7,6 @@ using Microsoft.Maui.ApplicationModel; using Microsoft.Maui.Storage; using Microsoft.UI.Xaml; -using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Media; namespace Microsoft.Maui @@ -44,21 +43,6 @@ public FontManager(IFontRegistrar fontRegistrar, IServiceProvider? serviceProvid { _fontRegistrar = fontRegistrar; _serviceProvider = serviceProvider; - - Application.Current.Resources.RegisterPropertyChangedCallback(Control.FontFamilyProperty, OnPropertyChanged); - Application.Current.Resources.RegisterPropertyChangedCallback(Control.FontSizeProperty, OnPropertyChanged); - } - - private void OnPropertyChanged(DependencyObject sender, DependencyProperty dp) - { - if (dp == Control.FontFamilyProperty) - { - _defaultFontFamily = (FontFamily)Application.Current.Resources[SystemFontFamily]; - } - else if (dp == Control.FontSizeProperty) - { - _defaultFontSize = (double)Application.Current.Resources[SystemFontSize]; - } } ///