2016-08-02 23:54:57 +03:00
|
|
|
|
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()
|
|
|
|
|
{
|
2016-08-03 00:39:31 +03:00
|
|
|
|
#if APP
|
2016-08-02 23:54:57 +03:00
|
|
|
|
InitializeComponent();
|
2016-08-03 00:39:31 +03:00
|
|
|
|
|
2016-08-02 23:54:57 +03:00
|
|
|
|
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;
|
2016-08-03 00:39:31 +03:00
|
|
|
|
#endif
|
2016-08-02 23:54:57 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
~Bugzilla42069_Page()
|
|
|
|
|
{
|
|
|
|
|
Debug.WriteLine(DestructorMessage);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public FileImageSource ImageWhichChanges { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|