Class OptionalMvvmComponentBase<T>
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
TThe ViewModel
- Inheritance
-
OptionalMvvmComponentBase<T>
- Implements
- Inherited Members
Constructors
OptionalMvvmComponentBase()
protected OptionalMvvmComponentBase()
Properties
Vm
The ViewModel
[Parameter]
public T? Vm { get; set; }
Property Value
- T