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.AnimationType Property

Gets or sets the ContextItem animation type. The animation is displayed to show or hide context items.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

[DefaultValue(ContextAnimationType.Default)]
[XtraSerializableProperty]
public ContextAnimationType AnimationType { get; set; }

#Property Value

Type Default Description
DevExpress.Utils.ContextAnimationType Default

A ContextAnimationType value that determines which animation is displayed to show or hide context items.

#Property Paths

You can access this nested property as listed below:

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

#Remarks

The following animation types are available:

  • Default

    View Animation

  • OpacityAnimation

    View Animation

  • OutAnimation

    View Animation

  • SequenceAnimation

    View Animation

  • None

    View Animation

The code below demonstrates how to set AnimationType to OpacityAnimation.

using DevExpress.Utils;
// ...
pictureEdit1.Properties.ContextButtonOptions.AnimationType = ContextAnimationType.OpacityAnimation;

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

PropertiesAnimationType

You can also adjust AnimationTime.

See Also