From 9e63b2c47b859434203e3d5157a358a3749e52af Mon Sep 17 00:00:00 2001 From: Rudy Huyn Date: Sat, 9 Mar 2019 00:37:14 -0800 Subject: [PATCH] - merge the 3 CalculationResultStyle(S|M|L) in App.xaml - Create a new MaxFontSize property in order to be able to update it without being forced to fully update the Style (because m_startingFontSize was set in OnApplyTemplate) - Modify how DisplayMargin to prevent the Margin to shift when we change its value withouth fully updating the Style --- src/Calculator/App.xaml | 175 +----------------- src/Calculator/Controls/CalculationResult.cpp | 25 ++- src/Calculator/Controls/CalculationResult.h | 6 +- src/Calculator/Views/Calculator.xaml | 37 +--- src/Calculator/Views/Calculator.xaml.cpp | 21 ++- src/Calculator/Views/UnitConverter.xaml | 45 ++--- 6 files changed, 51 insertions(+), 258 deletions(-) diff --git a/src/Calculator/App.xaml b/src/Calculator/App.xaml index b06b7336..5c81a585 100644 --- a/src/Calculator/App.xaml +++ b/src/Calculator/App.xaml @@ -351,7 +351,7 @@ - - - - - - - - - - - + - - +