Skip to main content
A newer version of this page is available. .

DiagramDesignerControl.Actions Property

Provides access to the collection of actions provided by the diagram designer ribbon.

Namespace: DevExpress.Xpf.Diagram

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Diagram, DevExpress.Wpf.Diagram

Declaration

public ObservableCollection<IControllerAction> Actions { get; }

Property Value

Type Description
ObservableCollection<IControllerAction>

The collection of actions.

Remarks

The following code snippet shows how to add a ribbon group with a custom BarButtonItem to the diagram designer ribbon.

<dxdiag:DiagramDesignerControl.Actions>
    <dxb:InsertAction ContainerName="rpHome">
        <dxb:InsertAction.Element>
            <dxr:RibbonPageGroup Caption="Custom Commands" Name="CustomCommandsGroup"/>
        </dxb:InsertAction.Element>
    </dxb:InsertAction>
    <dxb:InsertAction ContainerName="CustomCommandsGroup">
        <dxb:InsertAction.Element>
            <dxb:BarButtonItem Content="Custom Action" ItemClick="BarButtonItem_ItemClick" />
        </dxb:InsertAction.Element>
    </dxb:InsertAction>
</dxdiag:DiagramDesignerControl.Actions>

To hide a ribbon group, use the UpdateAction bar action.

<dxdiag:DiagramDesignerControl.Actions>
    <dxb:UpdateAction xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    ElementName="{x:Static dxdiag:DefaultBarItemNames.FontRibbonGroup}" PropertyName="IsVisible">
        <sys:Boolean>False</sys:Boolean>
    </dxb:UpdateAction>
</dxdiag:DiagramDesignerControl.Actions>
See Also