Skip to main content
All docs
V25.1
  • ContextItemCollectionOptions.AnimationTime Property

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

    Namespace: DevExpress.Utils

    Assembly: DevExpress.Utils.v25.1.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.

    DefaultAnimation

    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