Command

Creates commands from plain delegates, for handlers that live in the view rather than a ViewModel.
public static class Command

Methods

From

A command that runs action, always executable.

public static ICommand From(
  Action action)
ParameterSummary
Action actionThe handler to run.

Returns

From

A command that runs action with the command parameter, always executable.

public static ICommand From<T>(
  Action<T?> action)
ParameterSummary
Action<T?> actionThe handler to run.
Type parameterSummary
TThe parameter type the handler expects.

Returns