зеркало из https://github.com/DeGsoft/maui-linux.git
30 строки
874 B
C#
30 строки
874 B
C#
using Windows.UI.Xaml;
|
|
|
|
#if WINDOWS_UWP
|
|
|
|
namespace Xamarin.Forms.Platform.UWP
|
|
#else
|
|
|
|
namespace Xamarin.Forms.Platform.WinRT
|
|
#endif
|
|
{
|
|
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; }
|
|
}
|
|
} |