ReactiveUserControlBase() constructor¶
Defined in
Type: ReactiveUserControlBase
Namespace: ReactiveUI.Avalonia
Assembly: ReactiveUI.Avalonia.dll
Applies to
net11.0, net10.0
protected ReactiveUserControlBase()
Summary: Initializes a new instance of the ReactiveUserControlBase class.
Remarks
When the control is activated, this constructor ensures that any activation logic defined in the associated ViewModel is also executed, provided the ViewModel implements IActivatableViewModel. This enables coordinated activation and deactivation between the view and its ViewModel, which is useful for managing resources and subscriptions in reactive UI scenarios.