Is it possible to avoid ON and OFF Text of Switch

How to avoid "ON" and "OFF" text of Switch control. If it is not possible then Is it possible to customize that text

Best Answer

  • RamseemAbdulRahimRamseemAbdulRahim IN ✭✭
    Accepted Answer

    Above requirement is achieved using custom renders.
    I create a Text property for the MySwitch control and change OffContent, OnContent based on Text in UWP.
    Change "ON/OFF" text in android by custom renders through changing TextOff/TextON property

Answers

  • RamseemAbdulRahimRamseemAbdulRahim INMember ✭✭
    Accepted Answer

    Above requirement is achieved using custom renders.
    I create a Text property for the MySwitch control and change OffContent, OnContent based on Text in UWP.
    Change "ON/OFF" text in android by custom renders through changing TextOff/TextON property

Sign In or Register to comment.