FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ReactiveWindowBase

    struct · ferroui-reactiveui-controls · v0.5.0

    struct ReactiveWindowBase
    

    A non-generic ReactiveUI Window base that owns the view model property (ReactiveWindowBase).

    When the window 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 ReactiveWindow<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<ReactiveWindowBase>
    

    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, over a window of the windowing platform.

    Panics

    Panics when no windowing platform is registered.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates the window.

    Panics

    Panics when no windowing platform is registered.

    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 window as a view of ReactiveUI ((IViewFor)window), which keeps it alive.

    Source

    Trait implementations

    Availability

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