-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Bugzilla39378.xaml.cs
67 lines (58 loc) · 1.18 KB
/
Bugzilla39378.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[NUnit.Framework.Category(Core.UITests.UITestCategories.Bugzilla)]
#endif
[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 ImageController39378();
}
[Preserve(AllMembers = true)]
class ImageController39378 : ViewModelBase
{
public ImageController39378()
{
HomeImage = "https://raw.githubusercontent.com/xamarin/Xamarin.Forms/master/banner.png";
BackgroundColor = "#f5f5dc";
}
public string BackgroundColor
{
get
{
return _backgroundColor;
}
set
{
_backgroundColor = value;
OnPropertyChanged();
}
}
public string HomeImage
{
get
{
return _homeImage;
}
set
{
_homeImage = value;
OnPropertyChanged();
}
}
string _backgroundColor;
string _homeImage;
}
}
}