diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2017-01-26 10:51:36 +0100 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-02-17 10:45:36 +0000 |
commit | 25fbdc093385d250bd8274f8c567d3081dd86526 (patch) | |
tree | 0626bf9045711c2a3cde6a828162250759f785d6 /Xamarin.Forms.Controls.Issues | |
parent | 7edc1013b1f343a3bff1b75f83cdff29ff15639c (diff) | |
download | xamarin-forms-25fbdc093385d250bd8274f8c567d3081dd86526.tar.gz xamarin-forms-25fbdc093385d250bd8274f8c567d3081dd86526.tar.bz2 xamarin-forms-25fbdc093385d250bd8274f8c567d3081dd86526.zip |
[i] Add Test for 45284
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
3 files changed, 67 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla45284.xaml b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla45284.xaml new file mode 100644 index 00000000..7d698656 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla45284.xaml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" + Title="Repro" + ItemsSource="{Binding Tabs}" + x:Class="Xamarin.Forms.Controls.Issues.Bugzilla45284"> + <TabbedPage.ItemTemplate> + <DataTemplate> + <ContentPage Title="{Binding Title}" Icon="{Binding Icon}"> + <Label>Hello</Label> + </ContentPage> + </DataTemplate> + </TabbedPage.ItemTemplate> +</TabbedPage>
\ No newline at end of file diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla45284.xaml.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla45284.xaml.cs new file mode 100644 index 00000000..f7827998 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla45284.xaml.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using Xamarin.Forms; +using Xamarin.Forms.CustomAttributes; +using Xamarin.Forms.Internals; + +namespace Xamarin.Forms.Controls.Issues +{ + [Preserve(AllMembers = true)] + [Issue(IssueTracker.Bugzilla, 45284, "[iOS10] Extra tab icons display in iOS when binding Title on TabbedPage", PlatformAffected.iOS)] + public partial class Bugzilla45284 : TabbedPage + { + public Bugzilla45284() + { + var model = new Bugzilla45284Model(); + InitializeComponent(); + BindingContext = model; + model.Change(); + } + } + + public class Bugzilla45284Model : INotifyPropertyChanged + { + public List<Bugzilla45284TabModel> Tabs => new List<Bugzilla45284TabModel> { + new Bugzilla45284TabModel(), + new Bugzilla45284TabModel(), + new Bugzilla45284TabModel(), + new Bugzilla45284TabModel(), + new Bugzilla45284TabModel(), + new Bugzilla45284TabModel(), + new Bugzilla45284TabModel(), + }; + + public event PropertyChangedEventHandler PropertyChanged; + public void Change() + { + PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Tabs))); + } + } + + public class Bugzilla45284TabModel + { + public string Title { get; set; } = "Title"; + public string Icon { get; set; } = "bank.png"; + } +}
\ No newline at end of file diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems index 36c7a2b9..e98c36c8 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems @@ -499,6 +499,9 @@ <Compile Include="$(MSBuildThisFileDirectory)Bugzilla35736.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla48158.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla45926.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Bugzilla45284.xaml.cs"> + <DependentUpon>Bugzilla45284.xaml</DependentUpon> + </Compile> </ItemGroup> <ItemGroup> <EmbeddedResource Include="$(MSBuildThisFileDirectory)Bugzilla22229.xaml"> @@ -608,6 +611,9 @@ <EmbeddedResource Include="$(MSBuildThisFileDirectory)Bugzilla39378.xaml"> <Generator>MSBuild:UpdateDesignTimeXaml</Generator> </EmbeddedResource> + <EmbeddedResource Include="$(MSBuildThisFileDirectory)Bugzilla45284.xaml"> + <Generator>MSBuild:UpdateDesignTimeXaml</Generator> + </EmbeddedResource> </ItemGroup> <ItemGroup> <EmbeddedResource Include="$(MSBuildThisFileDirectory)Bugzilla27417Xaml.xaml"> |