次の方法で共有


VisualDiagnosticsOverlay Class

Definition

public ref class VisualDiagnosticsOverlay : Microsoft::Maui::WindowOverlay, Microsoft::Maui::Graphics::IDrawable, Microsoft::Maui::IVisualDiagnosticsOverlay
public class VisualDiagnosticsOverlay : Microsoft.Maui.WindowOverlay, Microsoft.Maui.Graphics.IDrawable, Microsoft.Maui.IVisualDiagnosticsOverlay
type VisualDiagnosticsOverlay = class
    inherit WindowOverlay
    interface IVisualDiagnosticsOverlay
    interface IWindowOverlay
    interface IDrawable
Public Class VisualDiagnosticsOverlay
Inherits WindowOverlay
Implements IDrawable, IVisualDiagnosticsOverlay
Inheritance
VisualDiagnosticsOverlay
Implements

Constructors

VisualDiagnosticsOverlay(IWindow)

Initializes a new instance of the VisualDiagnosticsOverlay class.

Properties

Density

Gets the Density for the layer. Can be used to pass through Density settings to underlying drawables.

(Inherited from WindowOverlay)
DisableUITouchEventPassthrough

Gets or sets a value indicating whether to disable UI Touch Event Passthrough. Enable this when you want to enable hit testing the current overlay without interfacing with the underlaying UI.

(Inherited from WindowOverlay)
EnableDrawableTouchHandling

Gets or sets a value indicating whether to enable handling touch events when selecting any drawable element on the overlay. This setting is overridden by DisableUITouchEventPassthrough.

(Inherited from WindowOverlay)
EnableElementSelector

Gets or sets a value indicating whether to enable the element selector on the diagnostics overlay. If enabled, this will also enable DisableUITouchEventPassthrough.

GraphicsView (Inherited from WindowOverlay)
IsPlatformViewInitialized

Gets a value indicating whether the platform touch and drawing layer has been initialized. If it has not, you will be unable to draw or use hit testing on the Overlay.

(Inherited from WindowOverlay)
IsVisible

Gets or sets a value indicating whether to draw the window overlay.

(Inherited from WindowOverlay)
Offset

Gets the offset point used to adjust the platform drawing bounds for a given Adorner. Used when the underlying operating system may not give exact placement for where elements are. Ex. Android and the Status Bar.

ScrollToElement

Gets or sets a value indicating whether to automatically scroll to an element when adding an adorner, if available.

ScrollViews

Gets the Scroll Views in a given window, to be handled by the layer for when they scroll to update the underlying adorners.

Window

Gets the containing IWindow.

(Inherited from WindowOverlay)
WindowElements

Gets the current collection of drawable elements on the overlay.

(Inherited from WindowOverlay)

Methods

AddAdorner(IAdorner, Boolean)

Adds a new adorner to the Visual Diagnostics Overlay.

AddAdorner(IVisualTreeElement, Boolean)

Adds a new adorner to the Visual Diagnostics Overlay. Uses the default Adorner for drawing.

AddScrollableElementHandler(IScrollView)

Adds scrollable element handle attached to IScrollView. Used for tracking when a user has scrolled, in order to update the layer to redraw.

AddScrollableElementHandlers()
AddWindowElement(IWindowOverlayElement)

Adds a new drawable element to the overlay.

Deinitialize()
Draw(ICanvas, RectF) (Inherited from WindowOverlay)
HandleUIChange()

Handles updating the drawing layer when a UI layout change happens.

(Inherited from WindowOverlay)
Initialize()

Initialize the overlay.

(Inherited from WindowOverlay)
Invalidate()

Invalidates the layer. Call to force the layer to redraw.

(Inherited from WindowOverlay)
RemoveAdorner(IAdorner)

Removes adorner from Visual Diagnostics Overlay.

RemoveAdorners()

Removes all adorners from the Visual Diagnostics Overlay.

RemoveAdorners(IVisualTreeElement)

Removes all adorners containing the inner IVisualTreeElement.

RemoveScrollableElementHandler()

Removes any existing scrollable element handles attached to IScrollView.

RemoveWindowElement(IWindowOverlayElement)

Removes a drawable element from the overlay.

RemoveWindowElements()

Removes all drawable elements from the overlay.

ScrollToView(IVisualTreeElement)

Automatically scroll to a given element within the view, if available.

Events

Tapped

The event handler that is fired whenever the WindowOverlay is tapped.

(Inherited from WindowOverlay)

Applies to