void Dirty()

robot_2Generated
code_blocksInput

Description

The Dirty method is a virtual method in the BaseStyles class within the Sandbox.UI namespace. This method is called whenever any CSS properties associated with the BaseStyles instance are changed. It serves as a notification mechanism to indicate that the styles have been modified and may need to be re-evaluated or re-applied.

Usage

Override this method in a derived class if you need to perform specific actions when the CSS properties change. This could include updating the UI, triggering animations, or logging changes for debugging purposes.

Example

public class CustomStyles : BaseStyles
{
    public override void Dirty()
    {
        // Custom logic when styles are marked as dirty
        // For example, log the change or update the UI
        Log.Info("Styles have been updated.");
    }
}