Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ContextItemCollectionOptions.AnimationTime Property

Gets or sets the time required to show or hide context items.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

[DefaultValue(200)]
[XtraSerializableProperty]
public int AnimationTime { get; set; }

#Property Value

Type Default Description
Int32 200

A value that determines the time required to show or hide context items, in milliseconds.

#Property Paths

You can access this nested property as listed below:

Object Type Path to AnimationTime
CameraControl
.ContextButtonOptions .AnimationTime
CalendarControlBase
.ContextButtonOptions .AnimationTime
ImageSlider
.ContextButtonOptions .AnimationTime
RepositoryItemPictureEdit
.ContextButtonOptions .AnimationTime
SvgImageBox
.ContextButtonOptions .AnimationTime
TileControl
.ContextButtonOptions .AnimationTime
TileView
.ContextButtonOptions .AnimationTime

#Remarks

The code below demonstrates how to change animation time.

pictureEdit1.Properties.ContextButtonOptions.AnimationTime = 300;

The figure below demonstrates the result.

Alternatively, you can adjust AnimationTime in a control’s Properties window.

PropertiesAnimationTime

You can set the AnimationType to deactivate or change ContextItem animation.

See Also