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 |
|
CalendarControlBase |
|
ImageSlider |
|
RepositoryItemPictureEdit |
|
SvgImageBox |
|
TileControl |
|
TileView |
|
Remarks
The following animation types are available:
Default
OpacityAnimation
OutAnimation
SequenceAnimation
None
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.
You can also adjust AnimationTime.
See Also