Back to Devexpress

DataViewBase.TotalSummaryMenuCustomizations Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-5d0caf35.md

latest3.3 KB
Original Source

DataViewBase.TotalSummaryMenuCustomizations Property

Allows you to customize the Total Summary‘s context menu. You can add new menu items or remove existing items.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
[Browsable(false)]
public BarManagerActionCollection TotalSummaryMenuCustomizations { get; }
vb
<Browsable(False)>
Public ReadOnly Property TotalSummaryMenuCustomizations As BarManagerActionCollection

Property Value

TypeDescription
BarManagerActionCollection

A collection of bar actions to customize the Total Summary‘s context menu.

|

Remarks

Example

The following example renames the “Customize…” item in the summary panel:

Use the bar‘s UpdateAction and specify the item name.

xaml
<dxg:TableView.TotalSummaryMenuCustomizations>
    <dxb:UpdateAction ElementName="{x:Static dxg:DefaultSummaryMenuItemNames.Customize}" PropertyName="Content" Value="Edit..." />
</dxg:TableView.TotalSummaryMenuCustomizations>

Refer to the Context Menus topic for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TotalSummaryMenuCustomizations 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.

how-to-customize-a-grids-context-menu-e1925/CS/Window1.xaml#L18

xml
<!--region #Remove-->
<dxg:TableView.TotalSummaryMenuCustomizations>
    <dxb:RemoveBarItemAndLinkAction ItemName="{x:Static dxg:DefaultSummaryMenuItemNames.Customize}" />

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace