summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1664.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1664.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1664.cs46
1 files changed, 46 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1664.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1664.cs
new file mode 100644
index 00000000..61cbecfd
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1664.cs
@@ -0,0 +1,46 @@
+´╗┐using System;
+
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls
+{
+ [Preserve (AllMembers=true)]
+ [Issue (IssueTracker.Github, 1664, "Page.Title bubbling", PlatformAffected.iOS)]
+ public class Issue1664 : TabbedPage
+ {
+ public Issue1664 ()
+ {
+ NavigationPage nav1 = new NavigationPage (new ContentPage {Title = "Page1"});
+ NavigationPage nav2 = new NavigationPage (new PageTwo ());
+
+ nav1.Title = "Tab 1";
+ nav2.Title = "Tab 2";
+
+ Children.Add (nav1);
+ Children.Add (nav2);
+ }
+
+ public class PageTwo : ContentPage
+ {
+ public PageTwo ()
+ {
+ var pageTwoEntry = new Entry {
+ VerticalOptions = LayoutOptions.Center,
+ HorizontalOptions = LayoutOptions.FillAndExpand,
+ Placeholder = "Enter a title for page 2",
+ Text = "Page 2",
+ };
+
+ pageTwoEntry.SetBinding (Entry.TextProperty, new Binding ("Title", BindingMode.OneWayToSource));
+ BindingContext = this;
+ Content = new StackLayout {
+ Children = {
+ new Label {Text = "When changing the content of this entry, the page title (on top) should update, but not the tab title"},
+ pageTwoEntry
+ }
+ };
+ }
+ }
+ }
+}
+