|
6 | 6 | mc:Ignorable="d"
|
7 | 7 | Title="Test 14350"
|
8 | 8 | 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> |
16 | 21 | <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" /> |
20 | 31 | </StackLayout>
|
21 | 32 | </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> |
33 | 36 | </ContentPage>
|
0 commit comments