Skip to content

ReactiveUserControlBase() constructor

Defined in

Type: ReactiveUserControlBase Namespace: ReactiveUI.Avalonia.Reactive Assembly: ReactiveUI.Avalonia.Reactive.dll

Applies to

net10.0, net9.0, net8.0

Attributes: [RequiresUnreferencedCode("ReactiveUI activation evaluates expression-based member chains via reflection; members may be trimmed.")]

protected ReactiveUserControlBase()

View source

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.