зеркало из https://github.com/DeGsoft/maui-linux.git
18 строки
551 B
C#
18 строки
551 B
C#
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();
|
|
}
|
|
}
|
|
} |