merge with master
This commit is contained in:
@@ -314,6 +314,15 @@
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="AccentCalcButtonStyle"
|
||||
BasedOn="{StaticResource SymbolOperatorButtonStyle}"
|
||||
TargetType="controls:CalculatorButton">
|
||||
<Setter Property="HoverBackground" Value="{ThemeResource AppControlHighlightAccentRevealBackgroundBrush}"/>
|
||||
<Setter Property="HoverForeground" Value="{ThemeResource SystemControlHighlightAltAltHighBrush}"/>
|
||||
<Setter Property="PressBackground" Value="{ThemeResource AppControlBackgroundListAccentHighRevealBackgroundBrush}"/>
|
||||
<Setter Property="PressForeground" Value="{ThemeResource SystemControlHighlightAltAltHighBrush}"/>
|
||||
</Style>
|
||||
|
||||
<converters:BooleanToVisibilityConverter x:Name="BooleanToVisibilityConverter"/>
|
||||
<converters:BooleanToVisibilityNegationConverter x:Name="BooleanToVisibilityNegationConverter"/>
|
||||
<ResourceDictionary.ThemeDictionaries>
|
||||
@@ -700,10 +709,10 @@
|
||||
<!-- Ideally the KeyGraphFeaturesPanel should be a frame so that navigation to and from the panel could be handled nicely -->
|
||||
<local:KeyGraphFeaturesPanel x:Name="KeyGraphFeaturesControl"
|
||||
Grid.RowSpan="2"
|
||||
x:Load="{x:Bind IsKeyGraphFeaturesVisible, Mode=OneWay}"
|
||||
KeyGraphFeaturesClosed="OnKeyGraphFeaturesClosed"
|
||||
ViewModel="{x:Bind EquationInputAreaControl.EquationVM, Mode=OneWay}"
|
||||
Visibility="{x:Bind IsKeyGraphFeaturesVisible, Mode=OneWay}"/>
|
||||
Visibility="{x:Bind IsKeyGraphFeaturesVisible, Mode=OneWay}"
|
||||
x:Load="{x:Bind IsKeyGraphFeaturesVisible, Mode=OneWay}"/>
|
||||
|
||||
<!-- This control should be within a grid that limits the hight to keep the sticky footer functionality from breaking -->
|
||||
<local:EquationInputArea x:Name="EquationInputAreaControl"
|
||||
|
@@ -58,7 +58,7 @@ GraphingCalculator::GraphingCalculator()
|
||||
|
||||
auto toolTip = ref new ToolTip();
|
||||
auto resProvider = AppResourceProvider::GetInstance();
|
||||
toolTip->Content = ActiveTracingOn ? resProvider.GetResourceString(L"disableTracingButtonToolTip") : resProvider.GetResourceString(L"enableTracingButtonToolTip");
|
||||
toolTip->Content = ActiveTracingOn ? resProvider->GetResourceString(L"disableTracingButtonToolTip") : resProvider->GetResourceString(L"enableTracingButtonToolTip");
|
||||
ToolTipService::SetToolTip(ActiveTracing, toolTip);
|
||||
|
||||
DataTransferManager ^ dataTransferManager = DataTransferManager::GetForCurrentView();
|
||||
@@ -253,7 +253,7 @@ void GraphingCalculator::OnDataRequested(DataTransferManager ^ sender, DataReque
|
||||
}
|
||||
catch (Exception ^ ex)
|
||||
{
|
||||
TraceLogger::GetInstance().LogPlatformException(ViewMode::Graphing, __FUNCTIONW__, ex);
|
||||
TraceLogger::GetInstance()->LogPlatformException(ViewMode::Graphing, __FUNCTIONW__, ex);
|
||||
|
||||
// Something went wrong, notify the user.
|
||||
|
||||
@@ -349,7 +349,7 @@ void GraphingCalculator::OnActiveTracingClick(Object ^ sender, RoutedEventArgs ^
|
||||
|
||||
auto toolTip = ref new ToolTip();
|
||||
auto resProvider = AppResourceProvider::GetInstance();
|
||||
toolTip->Content = ActiveTracingOn ? resProvider.GetResourceString(L"disableTracingButtonToolTip") : resProvider.GetResourceString(L"enableTracingButtonToolTip");
|
||||
toolTip->Content = ActiveTracingOn ? resProvider->GetResourceString(L"disableTracingButtonToolTip") : resProvider->GetResourceString(L"enableTracingButtonToolTip");
|
||||
ToolTipService::SetToolTip(ActiveTracing, toolTip);
|
||||
}
|
||||
|
||||
@@ -397,11 +397,11 @@ Platform::String ^ GraphingCalculator::GetInfoForSwitchModeToggleButton(bool isC
|
||||
{
|
||||
if (isChecked)
|
||||
{
|
||||
return AppResourceProvider::GetInstance().GetResourceString(L"GraphSwitchToGraphMode");
|
||||
return AppResourceProvider::GetInstance()->GetResourceString(L"GraphSwitchToGraphMode");
|
||||
}
|
||||
else
|
||||
{
|
||||
return AppResourceProvider::GetInstance().GetResourceString(L"GraphSwitchToEquationMode");
|
||||
return AppResourceProvider::GetInstance()->GetResourceString(L"GraphSwitchToEquationMode");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -411,11 +411,11 @@ void GraphingCalculator::SwitchModeToggleButton_Checked(Platform::Object ^ sende
|
||||
String ^ announcementText;
|
||||
if (SwitchModeToggleButton->IsChecked->Value)
|
||||
{
|
||||
announcementText = AppResourceProvider::GetInstance().GetResourceString(L"GraphSwitchedToEquationModeAnnouncement");
|
||||
announcementText = AppResourceProvider::GetInstance()->GetResourceString(L"GraphSwitchedToEquationModeAnnouncement");
|
||||
}
|
||||
else
|
||||
{
|
||||
announcementText = AppResourceProvider::GetInstance().GetResourceString(L"GraphSwitchedToGraphModeAnnouncement");
|
||||
announcementText = AppResourceProvider::GetInstance()->GetResourceString(L"GraphSwitchedToGraphModeAnnouncement");
|
||||
}
|
||||
|
||||
auto announcement = CalculatorAnnouncement::GetGraphModeChangedAnnouncement(announcementText);
|
||||
|
@@ -7,6 +7,7 @@
|
||||
#include "CalcViewModel\GraphingCalculator\EquationViewModel.h"
|
||||
#include "Controls/MathRichEditBox.h"
|
||||
#include "Controls/EquationTextBox.h"
|
||||
#include "TemplateSelectors/KeyGraphFeaturesTemplateSelector.h"
|
||||
|
||||
namespace CalculatorApp
|
||||
{
|
||||
|
Reference in New Issue
Block a user