BindableView
struct · ferroui-reactiveui-controls · v0.5.0
struct BindableView<C: IReactiveViewClass, VM: PartialEq + 'static>
A control of a reactive view class (a document whose root is ReactiveUserControlBase or
ReactiveWindowBase) as the view that the bindings of ReactiveUI take: an IViewFor<VM> over the
control's ViewModel property, which raises PropertyChanged for ViewModel when the property
changes.
It holds the control weakly, so that the activation of the control, which holds the view, does not keep the control alive.
Members
new
fn new(control: &Ref<C>) -> Rc<Self>
The view of control.
control
fn control(self: &Self) -> Option<Ref<C>>
The control, while it is alive.
view_model
fn view_model(self: &Self) -> Option<Rc<VM>>
The view model the control holds, when it is a VM (ViewModel).
set_view_model
fn set_view_model(self: &Self, view_model: Option<Rc<VM>>)
Sets the view model of the control (ViewModel = value).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherIntoViewForINotifyPropertyChangedIViewControlIActivatableViewIViewForIViewForOf<VM>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.