From 62317fd63bc03d509798a596a872b28cff0f86e2 Mon Sep 17 00:00:00 2001 From: Rudy Huyn Date: Thu, 14 Mar 2019 22:35:55 -0700 Subject: [PATCH] Activate TextSelection on all interesting values/results (#213) If we allow users to select texts, the application will feel more like a "Desktop app", will be easier to use on a tablet and users will be more prompt to use Ctrl+C to use the result in another app. --- src/Calculator/App.xaml | 27 +++++++++++++----------- src/Calculator/Views/DateCalculator.xaml | 3 +++ src/Calculator/Views/HistoryList.xaml | 4 ++++ src/Calculator/Views/MemoryListItem.xaml | 2 ++ 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/Calculator/App.xaml b/src/Calculator/App.xaml index b06b733..6010366 100644 --- a/src/Calculator/App.xaml +++ b/src/Calculator/App.xaml @@ -371,12 +371,13 @@ - - + - + + + - - + - + + + - - + - + + + @@ -602,6 +604,7 @@ AutomationProperties.LiveSetting="Polite" AutomationProperties.Name="{Binding StrDateResultAutomationName}" ContextFlyout="{StaticResource ResultsContextMenu}" + IsTextSelectionEnabled="True" Text="{Binding StrDateResult}"/> diff --git a/src/Calculator/Views/HistoryList.xaml b/src/Calculator/Views/HistoryList.xaml index 62c29e8..60e2eb1 100644 --- a/src/Calculator/Views/HistoryList.xaml +++ b/src/Calculator/Views/HistoryList.xaml @@ -64,15 +64,19 @@ ContextFlyout="{StaticResource HistoryContextMenu}"> diff --git a/src/Calculator/Views/MemoryListItem.xaml b/src/Calculator/Views/MemoryListItem.xaml index efe67d8..edba1e6 100644 --- a/src/Calculator/Views/MemoryListItem.xaml +++ b/src/Calculator/Views/MemoryListItem.xaml @@ -56,9 +56,11 @@