diff options
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39378.xaml.cs')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39378.xaml.cs | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39378.xaml.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39378.xaml.cs new file mode 100644 index 00000000..29b31616 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla39378.xaml.cs @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; +using Xamarin.Forms; +using Xamarin.Forms.CustomAttributes; + +#if UITEST +using Xamarin.UITest; +using NUnit.Framework; +#endif + + +namespace Xamarin.Forms.Controls.Issues +{ + [Preserve(AllMembers = true)] + [Issue(IssueTracker.Bugzilla, 39378, "Image binding with caching not operating as expected", PlatformAffected.All)] + public partial class Bugzilla39378 : TestContentPage + { +#if APP + public Bugzilla39378() + { + InitializeComponent(); + } +#endif + + protected override void Init() + { + BindingContext = new ImageController(); + } + + class ImageController : ViewModelBase + { + + public ImageController() + { + HomeImage = "http://xamarin.com/content/images/pages/forms/example-app.png"; + LocalBackgroundImage = "Default-568h@2x.png"; + BackgroundColor = "#00FF00"; + } + + public string BackgroundColor + { + get + { + return _backgroundColor; + } + + set + { + _backgroundColor = value; + OnPropertyChanged(); + } + } + + public string HomeImage + { + get + { + return _homeImage; + } + + set + { + _homeImage = value; + OnPropertyChanged(); + } + } + + public string LocalBackgroundImage + { + get + { + return _localBackgroundImage; + } + + set + { + _localBackgroundImage = value; + OnPropertyChanged(); + } + } + + + string _backgroundColor; + string _homeImage; + string _localBackgroundImage; + } + +#if UITEST + [Test] + public void ImageIsPresent() + { + RunningApp.WaitForElement(q => q.Marked("image1")); + Assert.Inconclusive("Please verify image is present"); + } +#endif + } +} |