maui-linux/Xamarin.Forms.Platform.WP8/PageRenderer.cs

18 строки
551 B
C#
Исходник Обычный вид История

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);
Loaded += (sender, args) => ((IPageController)Element).SendAppearing();
Unloaded += (sender, args) => ((IPageController)Element).SendDisappearing();
2016-03-22 23:02:25 +03:00
}
}
}