Back to Devexpress

TileItem.BindCommand(Object, Func<Object>) Method

windowsforms-devexpress-dot-xtraeditors-dot-tileitem-dot-bindcommand-x28-system-dot-object-system-dot-func-system-dot-object-x29.md

latest2.3 KB
Original Source

TileItem.BindCommand(Object, Func<Object>) Method

Binds the specific parameterized command to this TileItem.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual IDisposable BindCommand(
    object command,
    Func<object> queryCommandParameter = null
)
vb
Public Overridable Function BindCommand(
    command As Object,
    queryCommandParameter As Func(Of Object) = Nothing
) As IDisposable

Parameters

NameTypeDescription
commandObject

An Object that is the command to be bound to this TileItem.

|

Optional Parameters

NameTypeDefaultDescription
queryCommandParameterFunc<Object>null

A Func delegate that passes the specific Object to the command as a parameter.

|

Returns

TypeDescription
IDisposable

An IDisposable object. Disposing of this object unbinds the command from this TileItem.

|

Remarks

The BindCommand method supports the WinForms MVVM pattern. See the Commands topic to learn more.

See Also

TileItem Class

TileItem Members

DevExpress.XtraEditors Namespace