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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ReactiveUserControlBase>
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.
new
fn new() -> Ref<Self>
Creates the control.
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 control as a view of ReactiveUI ((IViewFor)control), which keeps it alive.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherTemplatedControlImplExtContentControlImplExtControlImplExtDerefUpcast<T>Upcast<ReactiveUserControlBase>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplContentControlImplFerroObjectImplIReactiveViewClassITypedReactiveViewClass
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.