Table of Contents

Interface IMutationCommand

Namespace
DotNetQuery.Mvvm
Assembly
DotNetQuery.Mvvm.dll

An ICommand returned by ToCommand<TParam>(Func<TParam, TArgs>, Func<TParam, bool>?) and its parameterless overload. Exposes RaiseCanExecuteChanged() so a page view model can re-evaluate CanExecute(object) when an input outside the mutation's own state changes — for example a bound text field that the command's canExecute predicate reads.

public interface IMutationCommand : ICommand
Inherited Members

Methods

RaiseCanExecuteChanged()

Raises CanExecuteChanged. Call on the UI thread — bound controls (WPF Button, Avalonia equivalents) re-query CanExecute(object) in response.

void RaiseCanExecuteChanged()