Skip to main content
.NET 8.0+

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

AppearanceController.ResetRulesCache() Method

In This Article

Resets the cache of the rules collected by the Appearance Controller at the current moment.

Namespace: DevExpress.ExpressApp.ConditionalAppearance

Assembly: DevExpress.ExpressApp.ConditionalAppearance.v24.2.dll

#Declaration

public void ResetRulesCache()

#Remarks

So that the Appearance Controller doesn’t collect rules each time the conditional appearance is refreshed for a target UI element, it caches them. The rules are collected for a particular UI element when the conditional appearance is applied for the first time. Then, each time the conditional appearance is refreshed for this element, the rules from the cache are applied. If you add a rule dynamically, using the AppearanceController.CollectAppearanceRules event, we recommend that you first call the ResetRulesCache method to reset the cache, then add the rule and finally, call the AppearanceController.Refresh method to apply the rule.

See Also