Please add Command implementation sample for creating own Control Librarys with Templated Control Template-File #19156
Labels
difficulty/starter 🚀
Categorizes an issue for which the difficulty level is reachable by newcomers
kind/documentation
project/documentation 📖
Categorizes an issue or PR as relevant to documentation
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.
The text was updated successfully, but these errors were encountered: