From 77b006d5f522523151aff0afbda857b2fb8ec19e Mon Sep 17 00:00:00 2001 From: Rudy Huyn Date: Mon, 18 Mar 2019 01:52:03 -0700 Subject: [PATCH] Use VisualState instead of code behind to change the style of Calculator result. Remove unnecessary calls to update the layout --- src/Calculator/App.xaml | 4 -- src/Calculator/Controls/CalculationResult.cpp | 21 ++++------ src/Calculator/Views/Calculator.xaml | 31 +++++++++----- src/Calculator/Views/Calculator.xaml.cpp | 41 ++----------------- src/Calculator/Views/Calculator.xaml.h | 4 +- 5 files changed, 32 insertions(+), 69 deletions(-) diff --git a/src/Calculator/App.xaml b/src/Calculator/App.xaml index 5c81a585..61f22d22 100644 --- a/src/Calculator/App.xaml +++ b/src/Calculator/App.xaml @@ -125,10 +125,6 @@ 15 - 72 - 46 - 28 -