summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2470.xaml
blob: 8acf235643ce8bcb97943d4d49bcf242dfd707bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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.Issues.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>