From 624f140d7cb8fd191684ac07b17f4bf1be831784 Mon Sep 17 00:00:00 2001 From: Tian Liao Date: Wed, 6 Nov 2024 23:11:58 +0800 Subject: [PATCH] ensure error state --- src/Calculator/Views/Calculator.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Calculator/Views/Calculator.xaml.cs b/src/Calculator/Views/Calculator.xaml.cs index ccd42637..7249e8a7 100644 --- a/src/Calculator/Views/Calculator.xaml.cs +++ b/src/Calculator/Views/Calculator.xaml.cs @@ -245,6 +245,7 @@ namespace CalculatorApp HistoryFlyout.FlyoutPresenterStyle.Setters.Add(new Setter(AutomationProperties.NameProperty, historyPaneName)); string memoryPaneName = AppResourceProvider.GetInstance().GetResourceString("MemoryPane"); MemoryFlyout.FlyoutPresenterStyle.Setters.Add(new Setter(AutomationProperties.NameProperty, memoryPaneName)); + OnIsInErrorPropertyChanged(); // Delay load things later when we get a chance. WeakReference weakThis = new WeakReference(this);