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

ImageEdit.MenuTemplate Property

Gets or sets the template used to display the Image Menu. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public ControlTemplate MenuTemplate { get; set; }

#Property Value

Type Description
ControlTemplate

A ControlTemplate object that represents the template used to display the image menu.

#Remarks

The following code sample demonstrates how to customize the editor menu and display custom buttons:

<dxe:ImageEdit>
    <dxe:ImageEdit.MenuTemplate>
        <ControlTemplate>
            <StackPanel Orientation="Horizontal">
                <dxe:ImageEditToolButton ToolTip="Grayscale" 
                                         Click="OnApplyEffectButtonClick"
                                         ImageSource="/CustomizationDemo;component/Images/inactive.png"/>
                <dxe:ImageEditToolButton ToolTip="Normal" 
                                         Click="OnUndoEffectButtonClick"
                                         ImageSource="/CustomizationDemo;component/Images/active.png"/>
                <dxe:ImageEditToolSeparator/>
                <dxe:ImageEditCopyToolButton/>
                <dxe:ImageEditLoadToolButton/>
                <dxe:ImageEditSaveToolButton/>
            </StackPanel>
        </ControlTemplate>
    </dxe:ImageEdit.MenuTemplate>
</dxe:ImageEdit>
See Also