diff --git a/src/Calculator/App.xaml.cs b/src/Calculator/App.xaml.cs index 13e03f99..449ce6db 100644 --- a/src/Calculator/App.xaml.cs +++ b/src/Calculator/App.xaml.cs @@ -93,8 +93,8 @@ namespace CalculatorApp args.SplashScreen.Dismissed += async (_, __) => await SetupJumpListAsync(); - var minWindowWidth = (float)Resources["AppMinWindowWidth"]; - var minWindowHeight = (float)Resources["AppMinWindowHeight"]; + var minWindowWidth = Convert.ToSingle(Resources["AppMinWindowWidth"]); + var minWindowHeight = Convert.ToSingle(Resources["AppMinWindowHeight"]); var minWindowSize = SizeHelper.FromDimensions(minWindowWidth, minWindowHeight); ApplicationView appView = ApplicationView.GetForCurrentView();