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:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user