From fe599e31f8c881ff73a1b759b0a2af3bc6915272 Mon Sep 17 00:00:00 2001 From: Rudy Huyn Date: Mon, 16 Dec 2019 10:41:35 -0800 Subject: [PATCH] Update graph tooltip design and content (#867) * update graph tooltip * modify font size --- .../GraphingCalculator.xaml | 31 ++++++++++++++----- .../GraphingCalculator.xaml.cpp | 2 +- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml index 5b1c815..acb5fda 100644 --- a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml +++ b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml @@ -231,6 +231,13 @@ + @@ -368,8 +386,8 @@ VerticalAlignment="Top" Style="{ThemeResource GraphControlCommandPanel}" RequestedTheme="Light"> - - + @@ -459,8 +474,8 @@ + FontSize="{ThemeResource ToolTipContentThemeFontSize}" + AutomationProperties.LiveSetting="Polite"/> diff --git a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp index cb76110..9c4ea69 100644 --- a/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp +++ b/src/Calculator/Views/GraphingCalculator/GraphingCalculator.xaml.cpp @@ -152,7 +152,7 @@ void GraphingCalculator::OnTracePointChanged(Windows::Foundation::Point newPoint wstringstream traceValueString; // TODO: The below precision should ideally be dynamic based on the current scale of the graph. - traceValueString << "x=" << fixed << setprecision(1) << newPoint.X << ", y=" << fixed << setprecision(1) << newPoint.Y; + traceValueString << "(" << fixed << setprecision(1) << newPoint.X << ", " << fixed << setprecision(1) << newPoint.Y << ")"; TraceValue->Text = ref new String(traceValueString.str().c_str());