Skip to content

ViewModelViewHost.ViewModel property

Defined in

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

Applies to

net10.0, net9.0, net8.0

public object? ViewModel { get; set; }

View source

Summary: Gets or sets the data context for the control.

Returns: object?

Remarks

        Assigning a view model updates the view selected by this host and the bindings within that view.