summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1898.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1898.xaml.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1898.xaml.cs47
1 files changed, 47 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1898.xaml.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1898.xaml.cs
new file mode 100644
index 00000000..2e0b615d
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1898.xaml.cs
@@ -0,0 +1,47 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Linq;
+using System.Runtime.CompilerServices;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Input;
+
+using Xamarin.Forms;
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls
+{
+#if APP
+ [Preserve (AllMembers = true)]
+ [Issue (IssueTracker.Github, 1898, "TabbedPage Page not watching icon changes", PlatformAffected.iOS, NavigationBehavior.PushAsync)]
+ public partial class Issue1898 : TabbedPage
+ {
+ public Issue1898()
+ {
+ InitializeComponent();
+ var vm = new Isseu1898Vm {
+ ChangeTitleOneCommand = new Command (() => Issue1898PageOne.Title = "Changed 1"),
+ ChangeIconOneCommand = new Command (() => Issue1898PageOne.Icon = "coffee.png"),
+ ChangeIconOtherPageOneCommand = new Command (() => Issue1898PageTwo.Icon = "coffee.png"),
+ ChangeTitleTwoCommand = new Command (() => Issue1898PageTwo.Title = "Changed 2"),
+ ChangeIconTwoCommand = new Command (() => Issue1898PageTwo.Icon = "bank.png"),
+ ChangeIconOtherPageTwoCommand = new Command (() => Issue1898PageOne.Icon = "calculator.png"),
+ };
+ BindingContext = vm;
+ }
+ }
+
+ public class Isseu1898Vm
+ {
+ public ICommand ChangeTitleOneCommand { get; set; }
+ public ICommand ChangeIconOneCommand { get; set; }
+ public ICommand ChangeIconOtherPageOneCommand { get; set; }
+
+ public ICommand ChangeTitleTwoCommand { get; set; }
+ public ICommand ChangeIconTwoCommand { get; set; }
+ public ICommand ChangeIconOtherPageTwoCommand { get; set; }
+ }
+#endif
+}