Skip to main content
ON

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

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