Skip to main content
All docs
V24.2

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

SvgImageBox.ContextButtons Property

Provides access to the collection of context buttons displayed in the SvgImageBox control.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public ContextItemCollection ContextButtons { get; }

#Property Value

Type Description
ContextItemCollection

The collection of context buttons displayed in the SvgImageBox control.

#Remarks

The ContextButtons collection allows you to specify context buttons (see ContextItem) for the SvgImageBox control. These buttons are displayed when you hover over the control.

The figure below shows sample context buttons positioned at the top and bottom control edges.

SvgImageBox - Context Buttons

At design time, you can manage the context button collection and specify button properties using the Context Buttons designer. To invoke this designer, click the ellipsis button for the ContextButtons property in the Properties grid.

SvgImageBox - Context Button Collection Editor

To perform actions when a user clicks context buttons, handle the SvgImageBox.ContextButtonClick event.

The SvgImageBox.ContextButtonOptions object provides settings to customize context buttons. For instance, you can specify the indent between the buttons, the background color, and the animation effect used to show and hide the buttons, etc.

See Also