public override void LoadView() { View = new AvaloniaView() { Content = Content, BackgroundColor = _statusBarColor.ToUiColor() }; UIApplication.Notifications.ObserveDidChangeStatusBarOrientation(delegate { AutoFit(); }); UIApplication.Notifications.ObserveDidChangeStatusBarFrame(delegate { AutoFit(); }); AutoFit(); }
public void UpdateKeyboard(IInputElement focusedElement) { if (_oldView?.IsFirstResponder == true) { _oldView?.ResignFirstResponder(); } _oldView = null; //TODO: Raise a routed event to determine if any control wants to become the text input handler if (focusedElement is TextBox) { var view = ((focusedElement.VisualRoot as TopLevel)?.PlatformImpl as AvaloniaView.TopLevelImpl)?.View; view?.BecomeFirstResponder(); } }
public bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { var builder = AppBuilder.Configure <TApp>(); CustomizeAppBuilder(builder); var lifetime = new Lifetime(); builder.AfterSetup(_ => { Window = new UIWindow(); var view = new AvaloniaView(); lifetime.View = view; Window.RootViewController = new UIViewController { View = view }; }); builder.SetupWithLifetime(lifetime); Window.Hidden = false; return(true); }
public AvaloniaViewController(UIWindow window) { AvaloniaView = new AvaloniaView(window, this); }
public TopLevelImpl(AvaloniaView view) { _view = view; NativeControlHost = new NativeControlHostImpl(_view); }
public TopLevelImpl(AvaloniaView view) { _view = view; }
public TouchHandler(AvaloniaView view, ITopLevelImpl tl) { _view = view; _tl = tl; }
public TopLevelImpl(AvaloniaView view) { _view = view; NativeControlHost = new NativeControlHostImpl(_view); StorageProvider = new IOSStorageProvider(view); }
public NativeControlHostImpl(AvaloniaView avaloniaView) { _avaloniaView = avaloniaView; }