Skip to main content

DataUpdateAnimationSettings Class

Contains the conditional formatting animation specific settings for data update conditional format.

Namespace: DevExpress.Xpf.Core.ConditionalFormatting

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public class DataUpdateAnimationSettings :
    AnimationSettingsBase

The following members return DataUpdateAnimationSettings objects:

Remarks

The Data Update conditional format works with animation effects. To change animation effects, create the DataUpdateAnimationSettings class instance with required settings, and assign the resulting object to the DataUpdateFormatCondition.AnimationSettings property.

The following code sample illustrates how to change animation effects in markup.

<dxg:TableView.FormatConditions>
   <dxg:DataUpdateFormatCondition FieldName="DeltaPrice" Rule="Always" PredefinedFormatName="LightRedFillWithDarkRedText">
      <dxg:DataUpdateFormatCondition.AnimationSettings>
         <dx:DataUpdateAnimationSettings EasingMode="Linear" HideDuration="0:0:2" HoldDuration="0:0:6" ShowDuration="0:0:2" />      
      </dxg:DataUpdateFormatCondition.AnimationSettings>
   </dxg:DataUpdateFormatCondition>
</dxg:TableView.FormatConditions>

The code sample below illustrates how to change animation effects in code-behind.

var deltaPriceFormatCondition = new DataUpdateFormatCondition() {
   FieldName = "DeltaPrice",
   Rule = DataUpdateRule.Always,
   PredefinedFormatName = "LightRedFillWithDarkRedText",
   AnimationSettings = new DataUpdateAnimationSettings() {
      EasingMode = AnimationEasingMode.Linear,
      HideDuration = new Duration(new TimeSpan(0, 0, 2)),
      HoldDuration = new Duration(new TimeSpan(0, 0, 6)),
      ShowDuration = new Duration(new TimeSpan(0, 0, 2))
   }
};
view.FormatConditions.Add(deltaPriceFormatCondition);

See the Data Update Animation section of the Formatting Changing Values topic to learn more about data update animation in GridControl.

Inheritance

See Also