Skip to content

Commit 4d62af3

Browse files
committed
Update repro sample for issue xamarin#14350
1 parent 79f8457 commit 4d62af3

File tree

1 file changed

+24
-21
lines changed
  • Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared

1 file changed

+24
-21
lines changed

Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue14350.xaml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,31 @@
66
mc:Ignorable="d"
77
Title="Test 14350"
88
x:Class="Xamarin.Forms.Controls.Issues.Issue14350">
9-
10-
<RefreshView IsRefreshing="{Binding IsRefreshing}" Command="{Binding Refresh}" IsEnabled="{Binding IsRefreshAllowed}">
11-
<ScrollView>
12-
<StackLayout>
13-
<Label Text="Test for issue #14350" />
14-
<Label Text="Refreshing ..." IsVisible="{Binding IsRefreshing}" BackgroundColor="Orange"/>
15-
<Label Text="Enable refresh:" IsVisible="{Binding IsRefreshAllowed}" TextColor="Green"/>
9+
<StackLayout>
10+
<Label Text="Test for issue #14350" />
11+
<Label Text="Refresh enabled" IsVisible="{Binding IsRefreshAllowed}" TextColor="Green"/>
12+
<Button Text="Refresh now" Command="{Binding Refresh}" />
13+
<StackLayout>
14+
<StackLayout Orientation="Horizontal">
15+
<Label Text="Enable refresh:" HorizontalOptions="FillAndExpand"/>
16+
<Switch IsToggled="{Binding IsRefreshAllowed}" />
17+
</StackLayout>
18+
</StackLayout>
19+
<RefreshView IsRefreshing="{Binding IsRefreshing}" Command="{Binding Refresh}" IsEnabled="{Binding IsRefreshAllowed}">
20+
<ScrollView>
1621
<StackLayout>
17-
<StackLayout Orientation="Horizontal">
18-
<Label Text="Refresh enabled:" HorizontalOptions="FillAndExpand"/>
19-
<Switch IsToggled="{Binding IsRefreshAllowed}" />
22+
<Label Text="Pull-to-refresh here" />
23+
<Label Text="Refreshing ..." IsVisible="{Binding IsRefreshing}" TextColor="Orange"/>
24+
<BoxView HeightRequest="30" />
25+
<StackLayout>
26+
<Label Text="Test steps:" />
27+
<Label Text="1. Swipe to refresh" />
28+
<Label Text="2. Refresh/busy indicator appears at the top" />
29+
<Label Text="3. Refresh/busy indicator should remain visible until content changes (refresh is finished). Due to issue #14350 the indicator vanishes too early if Command.CanExecute toggles (in this test after 1 second)." />
30+
<Label Text="4. Repeat steps 1 to 3 multiple times" />
2031
</StackLayout>
2132
</StackLayout>
22-
<StackLayout>
23-
<Label Text="Test steps (Android):" />
24-
<Label Text="1. Swipe to refresh" />
25-
<Label Text="2. Refresh/busy indicator appears at the top" />
26-
<Label Text="3. Refresh/busy indicator should remain visible until content changes (refresh is finished).
27-
due to issue #14350 the indicator vanishes too early if Command.CanExecute toggles (in this test after 1 second)." />
28-
<Label Text="4. Repeat steps 1 to 3 multiple times" />
29-
</StackLayout>
30-
</StackLayout>
31-
</ScrollView>
32-
</RefreshView>
33+
</ScrollView>
34+
</RefreshView>
35+
</StackLayout>
3336
</ContentPage>

0 commit comments

Comments
 (0)