maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Issue2470.xaml

29 строки
1.5 KiB
XML

<?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>