DataUpdateAnimationSettings Class
Contains the conditional formatting animation specific settings for data update conditional format.
Namespace: DevExpress.Xpf.Core.ConditionalFormatting
Assembly: DevExpress.Xpf.Core.v19.1.dll
Declaration
Related API Members
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataUpdateAnimationSettings class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.