Back to Devexpress

EventToCommandBase.CommandParameter Property

wpf-devexpress-dot-mvvm-dot-ui-dot-eventtocommandbase-add1d551.md

latest1.7 KB
Original Source

EventToCommandBase.CommandParameter Property

Gets or sets a parameter to pass to the EventToCommandBase.Command. This is a dependency property.

Namespace : DevExpress.Mvvm.UI

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public object CommandParameter { get; set; }
vb
Public Property CommandParameter As Object

Property Value

TypeDescription
Object

Specifies a parameter to pass to the EventToCommandBase.Command.

|

Remarks

The EventToCommand behavior allows you to pass a parameter to a command. Specify the CommandParameter property as follows:

xaml
<ListBox x:Name="list">
    <dxmvvm:Interaction.Behaviors>
        <dxmvvm:EventToCommand EventName="MouseDoubleClick" Command="{Binding EditCommand}" CommandParameter="{Binding ElementName=list, Path=SelectedItem}"/>
    </dxmvvm:Interaction.Behaviors>
</ListBox>

See Also

EventToCommandBase Class

EventToCommandBase Members

DevExpress.Mvvm.UI Namespace