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

ToggleSwitchEdit.AnimationMode Property

Gets or sets a value that specifies when the toggle flip is animated. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public ToggleSwitchAnimationMode AnimationMode { get; set; }

#Property Value

Type Description
ToggleSwitchAnimationMode

A ToggleSwitchAnimationMode enumeration value that specifies when the toggle flip is animated.

Available values:

Name Description
Always

The toggle flip is animated when the control is toggled by an end-user and in code.

OnToggle

The toggle flip is animated when the control is toggled by an end-user.

#Remarks

Set the ToggleSwitchEdit.EnableAnimation property to true to enable the toggle flip animation.

When the animation is enabled, you can specify the situation when the toggle flip should be animated.

  • The animation is enabled when an end user toggles the control (AnimationMode is set to OnToggle).
  • The animation is enabled when the control’s value is changed in code or when the end-user changes it (AnimationMode is set to Always).
See Also