예제 #1
0
        public ContentRoot CreateContentRoot(ContentRootType type, Color backgroundColor, UIElement?rootElement)
        {
            var contentRoot = new ContentRoot(type, backgroundColor, rootElement, _coreServices);

            _contentRoots.Add(contentRoot);

            return(contentRoot);
        }
예제 #2
0
        public InputManager(ContentRoot contentRoot)
        {
            _contentRoot = contentRoot;

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