diff options
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2470.xaml')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2470.xaml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2470.xaml b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2470.xaml new file mode 100644 index 00000000..b462f8ba --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2470.xaml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8" ?> +<local:TestTabbedPage xmlns="http://xamarin.com/schemas/2014/forms" + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" + xmlns:local="clr-namespace:Xamarin.Forms.Controls" + x:Class="Xamarin.Forms.Controls.Issue2470"> + <local:TestTabbedPage.Children> + <ContentPage Title="Generate"> + <StackLayout> + <Label Text="Bug" FontSize="Large"/> + <Label Text="We have a TabbedPage with a ListView bound to an ObservableCollection."/> + <Label Text="If the switch is off, there should be 2 items in the Results tab."/> + <Label Text="If the switch is on, there should be 5 items in the Results tab."/> + <Label Text="Flip the switch, go to the Results tab, notice the wrong data. If the data is correct, come back here and flip the switch and try it again. After a few tries, you should see the bug."/> + <Label Text="Then swipe the data down and notice it gets better."/> + <Label Text="This bug only happens on Android."/> + <Switch IsToggled="{Binding TwoOrFive}" AutomationId="Switch" /> + </StackLayout> + </ContentPage> + <ContentPage Title="Results"> + <ListView ItemsSource="{Binding Entries}"> + <ListView.ItemTemplate> + <DataTemplate> + <SwitchCell Text="{Binding Name}" On="{Binding Selected}"/> + </DataTemplate> + </ListView.ItemTemplate> + </ListView> + </ContentPage> + </local:TestTabbedPage.Children> +</local:TestTabbedPage>
\ No newline at end of file |