Table of Contents

Class MvvmComponentBase<T>

Namespace
Dmnk.Blazor.Mvvm
Assembly
Dmnk.Blazor.Mvvm.dll

Invokes StateHasChanged when ViewModel fires INotifyPropertyChanged and when any property of type ICommand fires CanExecuteChanged.

The ViewModel is set as a required parameter(Vm).

public abstract class MvvmComponentBase<T> : AbstractMvvmComponentBase<T>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IAsyncDisposable where T : INotifyPropertyChanged

Type Parameters

T

The ViewModel

Inheritance
MvvmComponentBase<T>
Implements
Derived
Inherited Members

Constructors

MvvmComponentBase()

protected MvvmComponentBase()

Properties

Vm

The ViewModel

[Parameter]
[EditorRequired]
public required T Vm { get; set; }

Property Value

T

Methods

OnInitialized()

Throw an exception if the ViewModel is not set.

protected override void OnInitialized()