maui-linux/Xamarin.Forms.ControlGaller.../_2489CustomRenderer.cs

20 строки
550 B
C#

using System;
using System.Linq;
using Xamarin.Forms;
using Xamarin.Forms.ControlGallery.iOS;
using Xamarin.Forms.Controls;
using Xamarin.Forms.Platform.iOS;
[assembly: ExportRenderer(typeof(Page), typeof(_2489CustomRenderer))]
namespace Xamarin.Forms.ControlGallery.iOS
{
public class _2489CustomRenderer : PageRenderer
{
protected override void OnElementChanged(VisualElementChangedEventArgs e)
{
base.OnElementChanged(e);
System.Diagnostics.Debug.WriteLine($"{e.NewElement.GetType()} is replaced by _2489CustomRenderer");
}
}
}