Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DiagramCommands.SetSelectedItemsStyle Property

Gets the command that sets the style of the selected diagram item.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v24.2.dll

NuGet Package: DevExpress.Wpf.Diagram

#Declaration

public ICommand<DiagramItemStyleId> SetSelectedItemsStyle { get; }

#Property Value

Type Description
ICommand<DevExpress.Diagram.Core.DiagramItemStyleId>

An object implementing the System.Windows.Input.ICommand interface.

#Remarks

The SetSelectedItemsStyle command accepts one of the DiagramShapeStyleId class fields as a parameter.

<Button Command="{Binding ElementName=diagramControl, Path=Commands.SetSelectedItemsStyle}" 
        CommandParameter="{x:Static dxdiag:DiagramShapeStyleId.Balanced1}"/>
See Also