FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ReactiveUserControlBase

    struct · ferroui-reactiveui-controls · v0.5.0

    struct ReactiveUserControlBase
    

    A non-generic ReactiveUI UserControl base that owns the view model property (ReactiveUserControlBase).

    When the control is activated, the view model it shows is activated with it, provided the view model implements IActivatableViewModel. The view model property and the data context follow each other (ViewModelPropertySync).

    The typed form is ReactiveUserControl<VM>; markup creates this class.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<ReactiveUserControlBase>
    

    Returns a strong reference to this object.

    Source

    view_model_property

    fn view_model_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Identifies the ViewModel property (ViewModelProperty).

    Source

    construct

    fn construct() -> Self
    

    Field initialisation.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates the control.

    Source

    view_model_value

    fn view_model_value(self: &Self) -> Option<BoxedValue>
    

    The view model, as the untyped value of the property (IViewFor.ViewModel { get; }).

    Source

    set_view_model_value

    fn set_view_model_value(self: &Self, value: Option<BoxedValue>)
    

    Sets the view model, as the untyped value of the property (IViewFor.ViewModel { set; }).

    Source

    view_for

    fn view_for(this: &Ref<Self>) -> Rc<dyn IViewFor>
    

    The control as a view of ReactiveUI ((IViewFor)control), which keeps it alive.

    Source

    Trait implementations

    Availability

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