зеркало из https://github.com/DeGsoft/maui-linux.git
31 строка
728 B
C#
31 строка
728 B
C#
using System;
|
|
#if __MOBILE__
|
|
using UIKit;
|
|
using NativeView = UIKit.UIView;
|
|
using NativeViewController = UIKit.UIViewController;
|
|
|
|
namespace Xamarin.Forms.Platform.iOS
|
|
#else
|
|
using NativeView = AppKit.NSView;
|
|
using NativeViewController = AppKit.NSViewController;
|
|
|
|
namespace Xamarin.Forms.Platform.MacOS
|
|
#endif
|
|
{
|
|
public interface IVisualElementRenderer : IDisposable, IRegisterable
|
|
{
|
|
VisualElement Element { get; }
|
|
|
|
NativeView NativeView { get; }
|
|
|
|
NativeViewController ViewController { get; }
|
|
|
|
event EventHandler<VisualElementChangedEventArgs> ElementChanged;
|
|
|
|
SizeRequest GetDesiredSize(double widthConstraint, double heightConstraint);
|
|
|
|
void SetElement(VisualElement element);
|
|
|
|
void SetElementSize(Size size);
|
|
}
|
|
} |