SvgImageBox.ContextButtons Property
Provides access to the collection of context buttons displayed in the SvgImageBox control.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.Utils.v24.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
Declaration
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.
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.