Back to Devexpress

SvgImageBox.ContextButtons Property

windowsforms-devexpress-dot-xtraeditors-dot-svgimagebox-632f0325.md

latest2.9 KB
Original Source

SvgImageBox.ContextButtons Property

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
public ContextItemCollection ContextButtons { get; }
vb
Public ReadOnly Property ContextButtons As ContextItemCollection

Property Value

TypeDescription
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.

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.

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

ContextButtonOptions

ContextButtonClick

CustomContextButtonToolTip

SvgImageBox Class

SvgImageBox Members

DevExpress.XtraEditors Namespace