blob: 0503ba46b1c95033b396af12737a4679371c2162 (
plain)
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
|
using System;
using System.Diagnostics;
using System.Threading;
namespace Xamarin.Forms.Controls.Issues
{
public partial class Bugzilla42069_Page : ContentPage
{
public const string DestructorMessage = ">>>>>>>>>> Bugzilla42069_Page destructor <<<<<<<<<<";
public Bugzilla42069_Page()
{
#if APP
InitializeComponent();
ImageWhichChanges = ImageSource.FromFile("oasissmall.jpg") as FileImageSource;
ChangingImage.SetBinding(Image.SourceProperty, nameof(ImageWhichChanges));
Button.Clicked += (sender, args) => Navigation.PopAsync(false);
Button2.Clicked += (sender, args) =>
{
ImageWhichChanges.File = ImageWhichChanges.File == "bank.png" ? "oasissmall.jpg" : "bank.png";
};
BindingContext = this;
#endif
}
~Bugzilla42069_Page()
{
Debug.WriteLine(DestructorMessage);
}
public FileImageSource ImageWhichChanges { get; set; }
}
}
|