Skip to content

Toggle Switch not working with utu:CommandExtensions.Command to bind the switch to the Models task? #1309

@DevTKSS

Description

@DevTKSS

Current behavior

Aufzeichnung.2024-12-14.161251.mp4

Seems to not do anything on click, copyed the text for the task from the ThemeService Guide in the docs and to me that should work, but not understanding what I am missing to make it work?

Expected behavior

triggering that command and switch theme? nothing special
The theme Service in general should be working, because if I trigger this.GetThemeService().SetThemeAsync(AppTheme.Dark); that is no problem at all to switch themes, while bound to the event of toggled itself. would like to do it with command instead to use the clean seperation, might need help if I did that wrong?

How to reproduce it (as minimally and precisely as possible)

see video

Workaround

use codebehind event on the pages xaml.cs

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

Skia (WPF), Skia (Linux X11), Skia (macOS), Skia (Linux Framebuffer), Skia (GTK)

IDE

Visual Studio 2022

IDE version

17.12.3

Relevant plugins

No response

Anything else we need to know?

C, can also provide full setup video of that app (3h so maybe not preferable ;) ), but in general, nothing done specially and not throwed any issue that could help me understand the problem. Everything else works fine there

Metadata

Metadata

Assignees

No one assigned

    Labels

    control/extensions-helpers-markupRelated to attached properties, helper classes, or markup extensions without a finer tagkind/enhancementNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions