Skip to main content
ON

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

DXViewBase.ColorTo(Color, Color, Int32) Method

Changes background and border colors with a smooth animation effect. The ColorTo method returns the Task that ends when animation completes.

Namespace: DevExpress.Maui.Core

Assembly: DevExpress.Maui.Core.dll

NuGet Package: DevExpress.Maui.Core

#Declaration

C#
public Task ColorTo(
    Color borderColor,
    Color backgroundColor,
    int duration
)

#Parameters

Name Type Description
borderColor Color

The border color.

backgroundColor Color

The background color.

duration Int32

The animation duration.

#Returns

Type Description
Task

An operation that executes asynchronously and completes when the animation completes.

See Also