Narrator is not providing any confirmation after activating Keep on top button (#1300)

* Narrator is not providing any confirmation after activating Keep on top button #1173
This commit is contained in:
Vignesh M 2020-07-14 05:32:08 +05:30 committed by GitHub
parent 64df01cecc
commit ca53d01e4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 0 deletions

View file

@ -41,6 +41,8 @@ namespace
StringReference DisplayValuePropertyName(L"DisplayValue");
StringReference CalculationResultAutomationNamePropertyName(L"CalculationResultAutomationName");
StringReference IsBitFlipCheckedPropertyName(L"IsBitFlipChecked");
StringReference CalcAlwaysOnTop(L"CalcAlwaysOnTop");
StringReference CalcBackToFullView(L"CalcBackToFullView");
}
namespace CalculatorResourceKeys
@ -1162,6 +1164,19 @@ void StandardCalculatorViewModel::OnPropertyChanged(String ^ propertyname)
TraceLogger::GetInstance()->UpdateButtonUsage(
IsBitFlipChecked ? NumbersAndOperatorsEnum::BitflipButton : NumbersAndOperatorsEnum::FullKeypadButton, ViewMode::Programmer);
}
else if (propertyname == IsAlwaysOnTopPropertyName)
{
String ^ announcement;
if (IsAlwaysOnTop)
{
announcement = AppResourceProvider::GetInstance()->GetResourceString(CalcAlwaysOnTop);
}
else
{
announcement = AppResourceProvider::GetInstance()->GetResourceString(CalcBackToFullView);
}
Announcement = CalculatorAnnouncement::GetAlwaysOnTopChangedAnnouncement(announcement);
}
}
void StandardCalculatorViewModel::SetCalculatorType(ViewMode targetState)