I just need to display ">" and "<" as button text so I just used > with a semicolon and < with semicolon but in the UI it is showing the text instead of "<" and ">". But it is working fine in Xaml not in code behind c# file.
Please find the code
CustomButton moveToNewCheckButton = new CustomButton
{
Text = ">",
Style = (Style) Application.Current.Resources["MoveButtonStyle"],
AutomationId = "MoveToNewCheckButton"
};
just use
Text = ">",