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

24 строки
811 B
C#

using System.Windows;
namespace Xamarin.Forms.Platform.WinPhone
{
public class NativeViewWrapper : View
{
public NativeViewWrapper(FrameworkElement nativeElement, GetDesiredSizeDelegate getDesiredSizeDelegate = null, ArrangeOverrideDelegate arrangeOverrideDelegate = null,
MeasureOverrideDelegate measureOverrideDelegate = null)
{
GetDesiredSizeDelegate = getDesiredSizeDelegate;
ArrangeOverrideDelegate = arrangeOverrideDelegate;
MeasureOverrideDelegate = measureOverrideDelegate;
NativeElement = nativeElement;
}
public ArrangeOverrideDelegate ArrangeOverrideDelegate { get; set; }
public GetDesiredSizeDelegate GetDesiredSizeDelegate { get; }
public MeasureOverrideDelegate MeasureOverrideDelegate { get; set; }
public FrameworkElement NativeElement { get; }
}
}