Skip to main content

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.1.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

    DefaultAnimation

  • OpacityAnimation

    View Animation

    OpacityAnimation

  • OutAnimation

    View Animation

    OutAnimation

  • SequenceAnimation

    View Animation

    SequenceAnimation

  • None

    View Animation

    NoneAnimation

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