From 1ee438ddaf9c0de62660282fea859f736946dfad Mon Sep 17 00:00:00 2001 From: David Kheri <42121406+dkheri@users.noreply.github.com> Date: Sat, 15 Jun 2019 03:41:02 +0200 Subject: [PATCH] Bound the calendar picker to the control above (#507) * Bound the calendar picker to the control above * collapsed textbox and added headertext to the calendar picker element * collpased textbox from both To and From calendar picker used headertext instead * localized strings for the new headers added for the calendar date pickers * modified the resoruces file so as to localize the strings * remapped the grid components after the removal of the text Block * restored original spacing between components --- src/Calculator/Resources/en-US/Resources.resw | 12 +++-- src/Calculator/Views/DateCalculator.xaml | 50 ++++++------------- 2 files changed, 22 insertions(+), 40 deletions(-) diff --git a/src/Calculator/Resources/en-US/Resources.resw b/src/Calculator/Resources/en-US/Resources.resw index 13bdea0c..7db00aef 100644 --- a/src/Calculator/Resources/en-US/Resources.resw +++ b/src/Calculator/Resources/en-US/Resources.resw @@ -2904,9 +2904,9 @@ Difference Difference result label - + From - From Date label for Date Picker + From Date Header for Difference Date Picker Months @@ -2916,9 +2916,9 @@ Subtract Subtract toggle button text - + To - To Date label for Date Picker + To Date Header for Difference Date Picker Years @@ -3387,6 +3387,10 @@ Pyeong A measurement unit for area. + + From + From Date Header for AddSubtract Date Picker + Scroll Calculation Result Left Automation label for the "Scroll Left" button that appears when a calculation result is too large to fit in calculation result text box. diff --git a/src/Calculator/Views/DateCalculator.xaml b/src/Calculator/Views/DateCalculator.xaml index 7f627557..e3899bbe 100644 --- a/src/Calculator/Views/DateCalculator.xaml +++ b/src/Calculator/Views/DateCalculator.xaml @@ -403,11 +403,9 @@ Grid.Row="2" Visibility="{Binding IsDateDiffMode, Converter={StaticResource BooleanToVisibilityConverter}}"> - - + - @@ -417,43 +415,31 @@ - - - - @@ -491,23 +476,16 @@ - - + @@ -533,7 +511,7 @@ - + @@ -594,11 +572,11 @@