示例#1
0
        public bool RemoveOverlay(IWindowOverlay overlay)
        {
            if (overlay is IVisualDiagnosticsOverlay)
            {
                return(false);
            }

            var result = _overlays.Remove(overlay);

            if (result)
            {
                overlay.Deinitialize();
            }

            return(result);
        }
示例#2
0
        public bool AddOverlay(IWindowOverlay overlay)
        {
            if (overlay is IVisualDiagnosticsOverlay)
            {
                return(false);
            }

            // Add the overlay. If it's added,
            // Initalize the native layer if it wasn't already,
            // and call invalidate so it will be drawn.
            var result = _overlays.Add(overlay);

            if (result)
            {
                overlay.Initialize();
                overlay.Invalidate();
            }

            return(result);
        }
示例#3
0
 public bool RemoveOverlay(IWindowOverlay overlay) => false;
示例#4
0
 public bool AddOverlay(IWindowOverlay overlay) => false;