FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IControlViewFor

    trait · ferroui-reactiveui-controls · v0.5.0

    trait IControlViewFor: ObjectType + Upcast<ferroui_controls::Control>
    

    A control class that is a view of the view model type ViewModel (a control that implements IViewFor<TViewModel> upstream, with a plain ViewModel property).

    View source

    Members

    ViewModel

    type ViewModel: PartialEq + 'static
    

    The type of the view model.

    Source

    view_model_of

    fn view_model_of(self: &Self) -> Option<Rc<<Self as >::ViewModel>>
    

    The view model (ViewModel { get; }).

    Source

    set_view_model_of

    fn set_view_model_of(self: &Self, view_model: Option<Rc<<Self as >::ViewModel>>)
    

    Sets the view model (ViewModel { set; }).

    Source

    Availability

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