Skip to content

Commit

Permalink
Remove not working code
Browse files Browse the repository at this point in the history
  • Loading branch information
MartyIX committed Jun 4, 2024
1 parent 436f75c commit ab8e7da
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Core/src/Fonts/FontManager.Windows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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];
}
}

/// <inheritdoc/>
Expand Down

0 comments on commit ab8e7da

Please sign in to comment.