Back to Devexpress

BaseContentContainer.ButtonBackgroundImages Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-windowsui-dot-basecontentcontainer-3ede50c0.md

latest3.1 KB
Original Source

BaseContentContainer.ButtonBackgroundImages Property

Gets or sets the collection of background images for the current Content Container‘s Custom Buttons.

Namespace : DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(null)]
public virtual object ButtonBackgroundImages { get; set; }
vb
<DefaultValue(Nothing)>
Public Overridable Property ButtonBackgroundImages As Object

Property Value

TypeDefaultDescription
Objectnull

An Object that stores background images for all Custom Buttons within the current BaseContentContainer.

|

Remarks

Images from the ButtonBackgroundImages collection are used for all WindowsUIButtons within a BaseContentContainer as background images for different visual states - Normal, Hovered, Clicked and Pressed. For this reason, the image collection assigned to the ButtonBackgroundImages property must contain 4 images. Buttons’ icons, specified by the IButtonProperties.Image or IButtonProperties.Glyphs property are drawn above these background images. Default background images (circles with transparent area inside) are 42x42 pixels in size. The figure below illustrates the ButtonBackgroundImages and IButtonProperties.Glyphs collection interaction for a normal and hovered button.

See Also

Glyphs

WindowsUI Buttons

BaseContentContainer Class

BaseContentContainer Members

DevExpress.XtraBars.Docking2010.Views.WindowsUI Namespace