Skip to main content
A newer version of this page is available. .

ContextItemCollectionOptions.HoverStateOpacity Property

Gets or sets opacity for hovered conteext items.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v20.2.dll

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

Declaration

[DefaultValue(1F)]
[XtraSerializableProperty]
public float HoverStateOpacity { get; set; }

Property Value

Type Default Description
Single 1

A value between 0 and 1 that determines opacity; 1 is for “opaque”, 0 is for “transparent”.

Property Paths

You can access this nested property as listed below:

Show 49 property paths
Object Type Path to HoverStateOpacity
AccordionControl
.ContextButtonsOptions .HoverStateOpacity
TileBar
.ContextButtonOptions .HoverStateOpacity
BaseCheckedListBoxControl
.ContextButtonOptions .HoverStateOpacity
BaseDateControl
.ContextButtonOptions .HoverStateOpacity
BaseImageListBoxControl
.ContextButtonOptions .HoverStateOpacity
BaseListBoxControl
.ContextButtonOptions .HoverStateOpacity
CameraControl
.ContextButtonOptions .HoverStateOpacity
CheckedListBoxControl
.ContextButtonOptions .HoverStateOpacity
CalendarControl
.ContextButtonOptions .HoverStateOpacity
CalendarControlBase
.ContextButtonOptions .HoverStateOpacity
ImageSlider
.ContextButtonOptions .HoverStateOpacity
DateControl
.ContextButtonOptions .HoverStateOpacity
ImageListBoxControl
.ContextButtonOptions .HoverStateOpacity
ListBoxControl
.ContextButtonOptions .HoverStateOpacity
RepositoryItemBaseSpinEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemBlobBaseEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemBreadCrumbEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemCalcEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemCheckedComboBoxEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemColorEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemColorPickEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemComboBox
.ContextButtonOptions .HoverStateOpacity
RepositoryItemDateEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemDateTimeOffsetEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemFontEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemGridLookUpEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemGridLookUpEditBase
.ContextButtonOptions .HoverStateOpacity
RepositoryItemImageComboBox
.ContextButtonOptions .HoverStateOpacity
RepositoryItemImageEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemLookUpEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemLookUpEditBase
.ContextButtonOptions .HoverStateOpacity
RepositoryItemMemoExEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemMRUEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemPictureEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemPopupBase
.ContextButtonOptions .HoverStateOpacity
RepositoryItemPopupBaseAutoSearchEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemPopupContainerEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemPopupGalleryEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemSearchControl
.ContextButtonOptions .HoverStateOpacity
RepositoryItemSearchLookUpEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemSpinEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemTimeEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemTimeSpanEdit
.ContextButtonOptions .HoverStateOpacity
RepositoryItemTreeListLookUpEdit
.ContextButtonOptions .HoverStateOpacity
SvgImageBox
.ContextButtonOptions .HoverStateOpacity
TileControl
.ContextButtonOptions .HoverStateOpacity
TileViewOptionsKanban
.GroupHeaderContextButtonOptions .HoverStateOpacity
DateNavigator
.ContextButtonOptions .HoverStateOpacity
ResourcesCheckedListBoxControl
.ContextButtonOptions .HoverStateOpacity

Remarks

The code below demonstrates how to decrease opacity for a RatingContextButton when the mouse pointer hovers over the item.

pictureEdit1.Properties.ContextButtonOptions.HoverStateOpacity = 0.8f;

The image below demonstrates the result.

HoverStateOpacity

Alternatively, you can set the NormalStateOpacity value in a control’s Properties window.

PropertiesHoverStateOpacity

See Also