FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new(control: &Ref<C>) -> Rc<Self>
    

    The view of control.

    Source

    control

    fn control(self: &Self) -> Option<Ref<C>>
    

    The control, while it is alive.

    Source

    view_model

    fn view_model(self: &Self) -> Option<Rc<VM>>
    

    The view model the control holds, when it is a VM (ViewModel).

    Source

    set_view_model

    fn set_view_model(self: &Self, view_model: Option<Rc<VM>>)
    

    Sets the view model of the control (ViewModel = value).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.