Table of Contents

Class OptionalMvvmComponentBase<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 an optional parameter(Vm).

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

Type Parameters

T

The ViewModel

Inheritance
OptionalMvvmComponentBase<T>
Implements
Inherited Members

Constructors

OptionalMvvmComponentBase()

protected OptionalMvvmComponentBase()

Properties

Vm

The ViewModel

[Parameter]
public T? Vm { get; set; }

Property Value

T