Hello,
After testing, only the switch control on Windows platforms will display the word On/Off.
You could refer to the following code snippet to change the text of the Switch control in the page to Yes/No.
// in xaml
<Switch x:Name="test_switch" IsToggled="true"/>
// in code behind
protected override void OnHandlerChanged()
{
base.OnHandlerChanged();
#if WINDOWS
var s = test_switch.Handler.PlatformView as ToggleSwitch;
if (s != null)
{
s.OffContent = "No";
s.OnContent = "Yes";
}
#endif
}
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.