Bar
A newer version of this page is available. Switch to the current version.

UpdateAction Class

Updates a specific bar or ribbon item's property with a value specified via the UpdateAction.Value.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v19.1.dll

Declaration

public class UpdateAction :
    BarManagerControllerActionBase
Public Class UpdateAction
    Inherits BarManagerControllerActionBase

Remarks

This action updates a specific bar or ribbon item's property (specified via UpdateAction.Property) with a value specified via the UpdateAction.Value.

The code sample below demonstrates how to change the default ribbon item icon with a custom icon.

<dxp:DocumentCommandProvider>
    <dxp:DocumentCommandProvider.RibbonActions>
        <dxb:UpdateAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.Open}" Property="{x:Static dxb:BarItem.LargeGlyphProperty}" Value="{dx:DXImage Image=ExportToPDF_32x32.png}"/>
...

See Bar Actions to learn more.

Implements

See Also