Back to Devexpress

BarItem.CommandParameter Property

wpf-devexpress-dot-xpf-dot-bars-dot-baritem-b889f9e1.md

latest3.2 KB
Original Source

BarItem.CommandParameter Property

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

Declaration

csharp
[Bindable(true)]
public object CommandParameter { get; set; }
vb
<Bindable(True)>
Public Property CommandParameter As Object

Property Value

TypeDescription
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.

wpf-dock-layout-manager-define-prism-regions-for-dock-layout-manager-elements/CS/PrismOnDXDocking/Shell.xaml#L29

xml
CommandTarget="{Binding ElementName=dockManager}"
CommandParameter="{Binding ElementName=documentContainer}"
/>

wpf-scheduler-use-scheduler-report-to-print-and-export-appointments/CS/PrintingExample/MainWindow.xaml#L33

xml
Command="{Binding PrintSchedulerCommand}"
CommandParameter="{DXBinding '@ElementName(scheduler)'}"
Content="Print Scheduler"

reporting-wpf-documentpreviewcontrol-customize-toolbar/CS/MainWindow.xaml#L56

xml
RelativeSource={RelativeSource Self}}"
        CommandParameter="Pdf"/>
</dxb:InsertAction.Element>

wpf-bars-mvvm-generate-bars-from-view-model-collection/CS/DXSample/MainWindow.xaml#L27

xml
Command="{Binding ExecuteActionCommand}"
        CommandParameter="{Binding Caption}"/>
</ContentControl>

See Also

Command

BarItem Class

BarItem Members

DevExpress.Xpf.Bars Namespace