wpf-devexpress-dot-xpf-dot-bars-dot-baritem-b889f9e1.md
Gets or sets the parameter to pass to the BarItem.Command. This is a dependency property.
Namespace : DevExpress.Xpf.Bars
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
[Bindable(true)]
public object CommandParameter { get; set; }
<Bindable(True)>
Public Property CommandParameter As Object
| Type | Description |
|---|---|
| Object |
A parameter to pass to the BarItem.Command.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the CommandParameter property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
CommandTarget="{Binding ElementName=dockManager}"
CommandParameter="{Binding ElementName=documentContainer}"
/>
Command="{Binding PrintSchedulerCommand}"
CommandParameter="{DXBinding '@ElementName(scheduler)'}"
Content="Print Scheduler"
reporting-wpf-documentpreviewcontrol-customize-toolbar/CS/MainWindow.xaml#L56
RelativeSource={RelativeSource Self}}"
CommandParameter="Pdf"/>
</dxb:InsertAction.Element>
wpf-bars-mvvm-generate-bars-from-view-model-collection/CS/DXSample/MainWindow.xaml#L27
Command="{Binding ExecuteActionCommand}"
CommandParameter="{Binding Caption}"/>
</ContentControl>
See Also