.NET Framework Class Library

RelayCommand Constructor (Action(Object), Predicate(Object))

<< Click to Display Table of Contents >>

Navigation:  Gnostice Document Studio .NET > Reference Documentation > API Reference > Gnostice.Controls.WPF Namespace > RelayCommand Class > RelayCommand Constructor  >

.NET Framework Class Library

RelayCommand Constructor (Action(Object), Predicate(Object))

Namespace: Gnostice.Controls.WPF

Assembly:  Gnostice.Controls.WPF (in Gnostice.Controls.WPF.dll)

Syntax

Visual Basic

Public Sub New ( _
 execute As Action(Of Object), _
 canExecute As Predicate(Of Object) _
)

C#

public RelayCommand(
 Action<Objectexecute,
 Predicate<ObjectcanExecute
)

Visual C++

public:
RelayCommand(
 Action<Object^>^ execute,
 Predicate<Object^>^ canExecute
)

Parameters

execute

Type: System.Action(Object)

canExecute

Type: System.Predicate(Object)

See Also

RelayCommand Class

RelayCommand Members

RelayCommand Overload

Gnostice.Controls.WPF Namespace