Windowscommunitytoolkit: Loading Control

Created on 30 Apr 2017  路  2Comments  路  Source: windows-toolkit/WindowsCommunityToolkit

Loading control quickly show itself when page is loading even though property Isloading= false.

<DataTemplate x:Key="LogoTemplate">
    <StackPanel Orientation="Horizontal" Padding="12">
        <Image Source="../../Assets/Icons/logo.png" Height="50" Margin="0,0,12,0" />
        <TextBlock Text="Loading video..." FontWeight="Bold" 
                 VerticalAlignment="Center" Foreground="White"/>
    </StackPanel>
</DataTemplate>

 <uwp:Loading Grid.Row="1" x:Name="LoadingControl" Background="DarkGray" Opacity="0.90" 
         IsLoading="{Binding IsBusy}" ContentTemplate="{StaticResource LogoTemplate}">
<ContentControl x:Name="LoadingContentControl"/>
bug

Most helpful comment

Looks like the Opacity defaults to 1, I'll get it fixed

All 2 comments

Looks like the Opacity defaults to 1, I'll get it fixed

I believe, that the expected behavior is that the opacity should default to whatever the IsLoading value is set initially.

the loading control should render immediately rather than fade in this case:

<toolkit:Loading IsLoading="True" />
Was this page helpful?
0 / 5 - 0 ratings

Related issues

0pd picture 0pd  路  28Comments

deltakosh picture deltakosh  路  48Comments

deltakosh picture deltakosh  路  55Comments

hoangwy picture hoangwy  路  36Comments

UwpDev picture UwpDev  路  35Comments