-
For example, there is such a binding in AXAML:
Helper.CommandVM is an Attached Property inherited from the parent. Is it possible to create such a binding in Sharp code? For comparison with WPF, a similar binding is created there like this:
It is not difficult to get a simple path to Attached Property. Example:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You still can create instance of |
Beta Was this translation helpful? Give feedback.
-
I found a solution using NuGet package // <Button Command="{Binding $self.(root:Helper.CommandVM).InsertFrameCommand}"/>
btn.Bind(Button.CommandProperty, btn.GetObservable(Helper.CommandVMProperty)
.Select(vm => vm?.InsertFrameCommand)
.ToBinding()); |
Beta Was this translation helpful? Give feedback.
I found a solution using NuGet package
System.Reactive.Linq
: