public ContentRoot CreateContentRoot(ContentRootType type, Color backgroundColor, UIElement?rootElement) { var contentRoot = new ContentRoot(type, backgroundColor, rootElement, _coreServices); _contentRoots.Add(contentRoot); return(contentRoot); }
public InputManager(ContentRoot contentRoot) { _contentRoot = contentRoot; InitializeManagedPointers(); }
public VisualTree(CoreServices coreServices, Color backgroundColor, UIElement?rootElement, ContentRoot contentRoot) { //TODO Uno: Adjust to match WinUI _coreServices = coreServices ?? throw new ArgumentNullException(nameof(coreServices)); ContentRoot = contentRoot ?? throw new ArgumentNullException(nameof(contentRoot)); if (rootElement != null) { RootElement = rootElement; } else { RootVisual = new RootVisual(coreServices); RootVisual.AssociatedVisualTree = this; RootVisual.SetBackgroundColor(backgroundColor); RootElement = RootVisual; _focusInputHandler = new UnoFocusInputHandler(RootVisual); } }
public InputManager(ContentRoot contentRoot) { _contentRoot = contentRoot; }
public void RemoveContentRoot(ContentRoot contentRoot) => _contentRoots.Remove(contentRoot);
public FocusAdapter(ContentRoot contentRoot) { _contentRoot = contentRoot; }