Back to Devexpress

.NET MAUI Shimmer View Custom Appearance

maui-404763-shimmer-view-custom-appearance.md

latest1.3 KB
Original Source

.NET MAUI Shimmer View Custom Appearance

  • Jun 25, 2024

This section includes a set of properties that you can use to configure shimmer wave appearance:

WaveWidth

Specifies the shimmer wave width as a fraction of the content width. A value from 0 to 1.

WaveAngle

Sets the shimmer wave orientation angle in degrees (clockwise). Use a numeric value to specify the angle.

WaveOpacitySpecifies wave opacity. A value from 0 to 1.WaveBackgroundOpacitySpecifies the wave’s background opacity. A value from 0 to 1.

The example below shows how to customize Shimmer View appearance:

xaml
<ContentPage ...
    xmlns:dxco="clr-namespace:DevExpress.Maui.Controls;assembly=DevExpress.Maui.Controls">
    <dxco:ShimmerView ...
                    WaveWidth="0.2" 
                    WaveAngle="30" 
                    WaveOpacity="0.8"
                    WaveBackgroundOpacity="0.5"/>
</ContentPage>