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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ReactiveWindowBase>
Returns a strong reference to this object.
view_model_property
fn view_model_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the ViewModel property (ViewModelProperty).
construct
fn construct() -> Self
Field initialisation, over a window of the windowing platform.
Panics
Panics when no windowing platform is registered.
new
fn new() -> Ref<Self>
Creates the window.
Panics
Panics when no windowing platform is registered.
view_model_value
fn view_model_value(self: &Self) -> Option<BoxedValue>
The view model, as the untyped value of the property (IViewFor.ViewModel { get; }).
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; }).
view_for
fn view_for(this: &Ref<Self>) -> Rc<dyn IViewFor>
The window as a view of ReactiveUI ((IViewFor)window), which keeps it alive.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherTemplatedControlImplExtContentControlImplExtControlImplExtTopLevelImplExtWindowBaseImplExtWindowImplExtDerefUpcast<T>Upcast<ReactiveWindowBase>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplContentControlImplTopLevelImplWindowBaseImplWindowImplFerroObjectImplIReactiveViewClassITypedReactiveViewClass
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.