public AvaloniaView(UIWindow window, UIViewController controller) : base(onFrame => PlatformThreadingInterface.Instance.Render = onFrame) { if (controller == null) throw new ArgumentNullException(nameof(controller)); _window = window; _controller = controller; _keyboardHelper = new KeyboardEventsHelper<AvaloniaView>(this); AutoresizingMask = UIViewAutoresizing.All; AutoFit(); UIApplication.Notifications.ObserveDidChangeStatusBarOrientation(delegate { AutoFit(); }); UIApplication.Notifications.ObserveDidChangeStatusBarFrame(delegate { AutoFit(); }); }
public PerspexView(UIWindow window, UIViewController controller) : base(onFrame => PlatformThreadingInterface.Instance.Render = onFrame) { if (controller == null) { throw new ArgumentNullException(nameof(controller)); } _window = window; _controller = controller; _keyboardHelper = new KeyboardEventsHelper <PerspexView>(this); AutoresizingMask = UIViewAutoresizing.All; AutoFit(); UIApplication.Notifications.ObserveDidChangeStatusBarOrientation(delegate { AutoFit(); }); UIApplication.Notifications.ObserveDidChangeStatusBarFrame(delegate { AutoFit(); }); }
public TopLevelImpl() { _keyboardHelper = new KeyboardEventsHelper <TopLevelImpl>(this); AutoresizingMask = UIViewAutoresizing.All; _keyboardHelper.ActivateAutoShowKeybord(); }
public TopLevelImpl() { _keyboardHelper = new KeyboardEventsHelper <TopLevelImpl>(this); AutoresizingMask = UIViewAutoresizing.All; }