Back to Devexpress

DataUpdateAnimationSettings Class

wpf-devexpress-dot-xpf-dot-core-dot-conditionalformatting-2f504258.md

latest3.8 KB
Original Source

DataUpdateAnimationSettings Class

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

Namespace : DevExpress.Xpf.Core.ConditionalFormatting

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public class DataUpdateAnimationSettings :
    AnimationSettingsBase
vb
Public Class DataUpdateAnimationSettings
    Inherits 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.

xaml
<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.

csharp
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

Object DispatcherObject DependencyObject AnimationSettingsBase DataUpdateAnimationSettings

See Also

DataUpdateAnimationSettings Members

Formatting Changing Values

Conditional Formats

DevExpress.Xpf.Core.ConditionalFormatting Namespace