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

ConditionalFormattingAnimationSettings Class

Contains the conditional formatting animation specific settings.

Namespace: DevExpress.Xpf.Core.ConditionalFormatting

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public class ConditionalFormattingAnimationSettings :
    AnimationSettingsBase

The following members return ConditionalFormattingAnimationSettings objects:

#Remarks

Set the ExpressionConditionBase.AnimateTransition (or IndicatorFormatConditionBase.AnimateTransition) property to true to enable animation effects.

To define specific animation effects for a conditional format, create the ConditionalFormattingAnimationSettings class instance with the required settings and assign the resulting object to the conditional format’s ExpressionConditionBase.AnimationSettings (or IndicatorFormatConditionBase.AnimationSettings) property.

The following code sample illustrates how to define specific animation effects for a conditional format in markup.

<dxg:TableView.FormatConditions>
   <dxg:DataBarFormatCondition FieldName="OldPrice" PredefinedFormatName="GreenSolidDataBar">
      <dxg:DataBarFormatCondition.AnimationSettings>
         <dx:ConditionalFormattingAnimationSettings Duration="0:0:6" EasingMode="EaseOut"/>
      </dxg:DataBarFormatCondition.AnimationSettings>
   </dxg:DataBarFormatCondition>
</dxg:TableView.FormatConditions>

The code sample below illustrates how to define the same animation effects for a conditional format in code-behind.

var oldPriceFormatCondition = new DataBarFormatCondition() {
   FieldName = "OldPrice",
   PredefinedFormatName = "GreenSolidDataBar",
   AnimationSettings = new ConditionalFormattingAnimationSettings() {
      Duration = new Duration(new TimeSpan(0, 0, 6)),
      EasingMode = AnimationEasingMode.EaseOut
   }
};
view.FormatConditions.Add(oldPriceFormatCondition);

See the Conditional Formatting Animation section of the Conditional Formats topic to learn how to specify animation effects for GridControl.

#Inheritance

See Also