Table of Contents

Method ToMaui

Namespace
Alternet.Maui
Assembly
Alternet.UI.Maui.dll

ToMaui(Command)

Converts an Command to a Command.

public static Command ToMaui(this Command command)

Parameters

command Command

The Command instance to convert. Cannot be null.

Returns

Command

A Command instance that wraps the provided Command.

Remarks

The returned Command uses the command's Execute(object?) and CanExecute(object?) delegates for execution and command state evaluation.

ToMaui(ICommand)

Converts an ICommand to a Command for use in .NET MAUI applications.

public static Command ToMaui(this ICommand command)

Parameters

command ICommand

The ICommand instance to convert. Cannot be null.

Returns

Command

A Command instance that wraps the specified ICommand.