Interface IDebugOverlay
- Namespace
- Icy.Diagnostics
- Assembly
- IcyUI.dll
A debug visualizer drawn at a single UIElement's own screen transform - a bounding-box outline, a focus highlight, and the like.
public interface IDebugOverlay
- Extension Methods
Remarks
Rendered from inside Draw(IRenderContext), immediately after the element's own
OnRender, which is the one point Transform is already exactly that
element's own screen transform - draw in the element's local space (against
(0,0)-(ActualBounds.Width,ActualBounds.Height)), the same convention Border.OnRender and
ClipToBounds's scissor computation both use, rather than re-deriving the
element's absolute screen position.
Properties
Name
Gets the name this overlay is registered and activated under - matched against
ActiveDebugTools and the Debug.Visualization attached property
(GetVisualization(UIElement)/SetVisualization(UIElement, string?)).
string Name { get; }
Property Value
Methods
Render(UIElement, IRenderContext)
Draws this overlay over element.
void Render(UIElement element, IRenderContext context)
Parameters
elementUIElementThe element being visualized.
contextIRenderContextThe render context, with Transform already set to
element's own screen transform.