mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-16 02:02:51 -07:00
Add Automation Names to UI Elements in EquationInputArea and KGF Panel (#1133)
* Missing EquationInputArea and KGF Automation Names added * Updated the KGF back button automation name and tooltip and added the automation name string for the KGF equation edit box * Reverted the removal of x:names and updated Variable Step Textbox to Variable Step Value Textbox per PR feedback * Updated the VariableListViewItem narrator announcement to include the name of the variable
This commit is contained in:
parent
07108af967
commit
33b4d18638
4 changed files with 76 additions and 8 deletions
|
@ -4,6 +4,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "../Common/Utils.h"
|
||||
#include "CalcViewModel/Common/LocalizationStringUtil.h"
|
||||
#include "EquationViewModel.h"
|
||||
|
||||
namespace CalculatorApp::ViewModel
|
||||
|
@ -107,6 +108,15 @@ public
|
|||
}
|
||||
}
|
||||
|
||||
property Platform::String ^ VariableAutomationName
|
||||
{
|
||||
Platform::String ^ get()
|
||||
{
|
||||
return CalculatorApp::Common::LocalizationStringUtil::GetLocalizedString(
|
||||
CalculatorApp::AppResourceProvider::GetInstance()->GetResourceString(L"VariableListViewItem"), Name);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
GraphControl::Variable ^ m_variable;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue