2016-03-22 23:02:25 +03:00
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
|
|
|
|
namespace Xamarin.Forms.Platform.WinPhone
|
|
|
|
|
{
|
|
|
|
|
public class PageRenderer : VisualElementRenderer<Page, Panel>
|
|
|
|
|
{
|
|
|
|
|
protected override void OnElementChanged(ElementChangedEventArgs<Page> e)
|
|
|
|
|
{
|
|
|
|
|
// Set prior to calling base
|
|
|
|
|
Tracker = new BackgroundTracker<Panel>(BackgroundProperty) { Model = Element, Element = this };
|
|
|
|
|
|
|
|
|
|
base.OnElementChanged(e);
|
|
|
|
|
|
2016-06-16 18:45:09 +03:00
|
|
|
|
Loaded += (sender, args) => ((IPageController)Element).SendAppearing();
|
|
|
|
|
Unloaded += (sender, args) => ((IPageController)Element).SendDisappearing();
|
2016-03-22 23:02:25 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|