CreatesCommandBindingViaCommandParameter
struct · ferroui-reactiveui · v0.5.0
struct CreatesCommandBindingViaCommandParameter<C>
Binds a command to a control of type C that has a Command and a CommandParameter
property (CreatesCommandBindingViaCommandParameter): the binding assigns the parameter, then
the command, and disposing it restores the values the control had.
The affinity is BindingAffinity::EXPLICIT for a control of type C when no event is named,
and zero otherwise: this binder binds no event.
Members
new
fn new(command: PropertyPath<Rc<C>, Option<Rc<dyn ICommand>>>, set_command: impl Fn(&C, Option<Rc<dyn ICommand>>) -> () + 'static, command_parameter: PropertyPath<Rc<C>, CommandParameter>, set_command_parameter: impl Fn(&C, CommandParameter) -> () + 'static) -> Self
A binder over the Command property (command reads it, set_command assigns it) and the
CommandParameter property of the controls of type C.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyDebugICreatesCommandBinding
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.