WinUI3: ToggleSwitch IsEnabled x:Bind does not work

Minh Van 171 Reputation points
2023-01-19T09:30:10.6266667+00:00

Hi,

Could anybody show me how to enable/disable ToggleSwitch from binding property. This is what I have done for testing:

From xaml file:
User's image

From code behind:
User's image

Thanks.

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
745 questions
0 comments No comments
{count} vote

Accepted answer
  1. Viorel 114K Reputation points
    2023-01-19T10:14:34.7566667+00:00

    It seems to work in this case:

    User's image

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful