Narrator reads incorrect information as “History and Memory list” in Programmer Calculator #1174 (#1286)
This commit is contained in:
@@ -71,8 +71,11 @@ void Calculator::LoadResourceStrings()
|
||||
m_closeMemoryFlyoutAutomationName = resProvider->GetResourceString(L"MemoryButton_Close");
|
||||
m_openHistoryFlyoutAutomationName = resProvider->GetResourceString(L"HistoryButton_Open");
|
||||
m_closeHistoryFlyoutAutomationName = resProvider->GetResourceString(L"HistoryButton_Close");
|
||||
m_dockPanelHistoryMemoryLists = resProvider->GetResourceString(L"DockPanel_HistoryMemoryLists");
|
||||
m_dockPanelMemoryList = resProvider->GetResourceString(L"DockPanel_MemoryList");
|
||||
AutomationProperties::SetName(MemoryButton, m_openMemoryFlyoutAutomationName);
|
||||
AutomationProperties::SetName(HistoryButton, m_openHistoryFlyoutAutomationName);
|
||||
AutomationProperties::SetName(DockPanel, m_dockPanelHistoryMemoryLists);
|
||||
}
|
||||
|
||||
void Calculator::InitializeHistoryView(_In_ HistoryViewModel ^ historyVM)
|
||||
@@ -343,6 +346,14 @@ void Calculator::OnModeVisualStateCompleted(_In_ Object ^ sender, _In_ Object ^
|
||||
AnimateWithoutResult->Begin();
|
||||
}
|
||||
}
|
||||
if (IsProgrammer)
|
||||
{
|
||||
AutomationProperties::SetName(DockPanel, m_dockPanelMemoryList);
|
||||
}
|
||||
else
|
||||
{
|
||||
AutomationProperties::SetName(DockPanel, m_dockPanelHistoryMemoryLists);
|
||||
}
|
||||
}
|
||||
|
||||
void Calculator::EnsureScientific()
|
||||
|
@@ -116,6 +116,8 @@ public
|
||||
Platform::String ^ m_closeMemoryFlyoutAutomationName;
|
||||
Platform::String ^ m_openHistoryFlyoutAutomationName;
|
||||
Platform::String ^ m_closeHistoryFlyoutAutomationName;
|
||||
Platform::String ^ m_dockPanelHistoryMemoryLists;
|
||||
Platform::String ^ m_dockPanelMemoryList;
|
||||
|
||||
Windows::UI::Xaml::Controls::PivotItem ^ m_pivotItem;
|
||||
bool m_IsDigit = false;
|
||||
|
Reference in New Issue
Block a user