Esempio n. 1
0
        public ContentRoot CreateContentRoot(ContentRootType type, Color backgroundColor, UIElement?rootElement)
        {
            var contentRoot = new ContentRoot(type, backgroundColor, rootElement, _coreServices);

            _contentRoots.Add(contentRoot);

            return(contentRoot);
        }
Esempio n. 2
0
        public InputManager(ContentRoot contentRoot)
        {
            _contentRoot = contentRoot;

            InitializeManagedPointers();
        }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
 public InputManager(ContentRoot contentRoot)
 {
     _contentRoot = contentRoot;
 }
Esempio n. 5
0
 public void RemoveContentRoot(ContentRoot contentRoot) => _contentRoots.Remove(contentRoot);
Esempio n. 6
0
 public FocusAdapter(ContentRoot contentRoot)
 {
     _contentRoot = contentRoot;
 }