Documentation de Dvp.Net. Forum : http://www.developpez.net/forums/f1239/applications/projets/projets-heberges/dvp-net/

[Ceci est une documentation préliminaire, sous réserve de modification.]

Initialise une nouvelle instance de DelegateCommand, avec les méthodes spécifiées pour Execute et CanExecute

Namespace:  Developpez.Dotnet.Windows.Input
Assembly:  Developpez.Dotnet.Windows (in Developpez.Dotnet.Windows.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public DelegateCommand(
	Action executeMethod,
	Func<bool> canExecuteMethod
)
Visual Basic (Declaration)
Public Sub New ( _
	executeMethod As Action, _
	canExecuteMethod As Func(Of Boolean) _
)
Visual C++
public:
DelegateCommand(
	Action^ executeMethod, 
	Func<bool>^ canExecuteMethod
)

Parameters

executeMethod
Type: System..::.Action

[Missing <param name="executeMethod"/> documentation for "M:Developpez.Dotnet.Windows.Input.DelegateCommand.#ctor(System.Action,System.Func{System.Boolean})"]

canExecuteMethod
Type: System..::.Func<(Of <(Boolean>)>)

[Missing <param name="canExecuteMethod"/> documentation for "M:Developpez.Dotnet.Windows.Input.DelegateCommand.#ctor(System.Action,System.Func{System.Boolean})"]

See Also