Back to Devexpress

ShimmerView.WaveDuration Property

maui-devexpress-dot-maui-dot-controls-dot-shimmerview-0d8adb8b.md

latest1.5 KB
Original Source

ShimmerView.WaveDuration Property

Gets or sets the wave duration that specifies how much time a shimmer wave takes to pass through content width.

Namespace : DevExpress.Maui.Controls

Assembly : DevExpress.Maui.Controls.dll

NuGet Package : DevExpress.Maui.Controls

Declaration

csharp
public TimeSpan WaveDuration { get; set; }

Property Value

TypeDescription
TimeSpan

A value that specifies wave duration.

|

Remarks

The following example shows how to specify shimmer wave duration:

xaml
<VerticalStackLayout>
    <Switch x:Name="switch" IsToggled="True" HorizontalOptions="Start" />
    <dxco:ShimmerView IsLoading="{Binding Source={x:Reference switch}, Path=IsToggled, Mode=TwoWay}"
                        HeightRequest="500" WaveDuration="00:00:02.00">
        <Image Source="devexpress_logo_extra_large_color" WidthRequest="200" HeightRequest="200"/>
    </dxco:ShimmerView>
</VerticalStackLayout>

See Also

ShimmerView Class

ShimmerView Members

DevExpress.Maui.Controls Namespace