ViewModelPropertySync
struct · ferroui-reactiveui-controls · v0.5.0
struct ViewModelPropertySync
Keeps a view's view model property and its data context in step (ViewModelPropertySync).
Members
forward_activation
fn forward_activation<C: IReactiveViewClass>(view: &Ref<C>)
Forwards the view's activation to its view model when the view model takes part in
activation (ForwardActivation).
The observable of the view model property tells ReactiveUI when the view model changes. The view activates itself through a view that refers to it weakly, so that the handlers of its activation do not keep it alive.
apply
fn apply(view: &StyledElement, change: &FerroPropertyChangedEventArgs<'_>, view_model_property: &'static StyledProperty<Option<BoxedValue>>, is_valid_view_model_value: impl Fn(Option<&BoxedValue>) -> bool)
Propagates a change between the view model property and the data context (Apply).
is_valid_view_model_value decides whether an incoming data context may become the view
model.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.