Back to Devexpress

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

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-recentitembase-dot-bindcommand-x28-system-dot-object-system-dot-func-system-dot-object-x29.md

latest2.3 KB
Original Source

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

Binds the specific parameterized command to this RecentItemBase class descendant.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public IDisposable BindCommand(
    object command,
    Func<object> queryCommandParameter = null
)
vb
Public 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.

|

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 RecentItemBase class descendant.

|

Remarks

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

See Also

RecentItemBase Class

RecentItemBase Members

DevExpress.XtraBars.Ribbon Namespace