Class OwningMvvmComponentBase<T>
Invokes StateHasChanged when ViewModel fires INotifyPropertyChanged and when any property of type ICommand fires CanExecuteChanged.
The ViewModel is set as a property that isn't a parameter(Vm).
public abstract class OwningMvvmComponentBase<T> : AbstractMvvmComponentBase<T>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IAsyncDisposable where T : INotifyPropertyChanged
Type Parameters
TThe ViewModel
- Inheritance
-
OwningMvvmComponentBase<T>
- Implements
- Inherited Members
Constructors
OwningMvvmComponentBase()
protected OwningMvvmComponentBase()
Properties
Vm
The ViewModel
public T Vm { get; set; }
Property Value
- T
Methods
OnInitialized()
Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.
protected override void OnInitialized()