All docs
V21.2
21.2
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SvgImageBox.ContextButtons Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v21.2.dll

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