Back to Devexpress

ResourceTreeControl.RowContextMenuActions Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-resourcetreecontrol-8dd87d83.md

latest1.9 KB
Original Source

ResourceTreeControl.RowContextMenuActions Property

Provides access to the collection of actions used to customize the row context menu.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public ObservableCollection<IControllerAction> RowContextMenuActions { get; }
vb
Public ReadOnly Property RowContextMenuActions As ObservableCollection(Of IControllerAction)

Property Value

TypeDescription
ObservableCollection<IControllerAction>

A collection of context menu customization actions.

|

Remarks

The code sample below demonstrates how to add a new menu item to the row context menu.

xaml
<dxsch:ResourceTreeControl.RowContextMenuActions>
                <dxb:InsertAction>
                    <dxb:InsertAction.Element>
                        <dxb:BarButtonItem Content="Custom Menu Item" Command="{Binding NewCommand}"/>
                    </dxb:InsertAction.Element>
                </dxb:InsertAction>
            </dxsch:ResourceTreeControl.RowContextMenuActions>

See Also

ResourceTreeControl Class

ResourceTreeControl Members

DevExpress.Xpf.Scheduling Namespace