Skip to content

Please add Command implementation sample for creating own Control Librarys with Templated Control Template-File #19156

Open
@DevTKSS

Description

@DevTKSS

What would you like clarification on

Current Page: https://github.com/unoplatform/uno/blob/master/doc/articles/guides/how-to-create-control-libraries.md/#L1

The current Example is only including Text setting and I would like to create a own Control that would also contain a Button/AppBarButton, which should be bindable also, but when I am trying to implement the CanExcecute of the DependencyProperty Command typed to ICommand, it wants me to initialize this Command in the constructor, to be able to listen to changes. Maybe that would be done with a eventhandler correctly (looked up the AppBarButton Definition where a private readonly SerialDisposable is used...
I would "simply" like to set the IsEnabled Property from that Button from the CanExecute...

Thats why I would like clarification on this.

Concern

Developing with Uno

Affected platforms

WebAssembly, Android, iOS, Mac Catalyst, Skia (WPF), Skia (Linux X11), Skia (macOS), Skia (Linux Framebuffer), Skia (GTK), Windows (WinAppSDK)

Any feedback?

Especially for those (like me) who are using mvux this topic is maybe harder to understand than for mvvm users who are creating these Commands every time they writing their ViewModel Code which is generated in mvux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions