public sealed class MarqueeOverlayThe rubber-band rectangle, drawn over a pane.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
An interface element rather than geometry in the render target, and that is the whole reason Viewport.Overlay exists. A band drawn into the scene's colour target would be in the scene's coordinate system, would be resolved at the render scale rather than the layout one, and would arrive a frame late on every machine where the interface and the renderer disagree about when a frame starts. Drawn here it is two rectangles in the same pass as every other panel.
⚠ It takes no pointer events and must not. The band is drawn on top of exactly the pixels the drag is happening over, so an element that hit-tested would swallow the release that ends it — a rubber-band that can be started and never finished. That is the theme's marquee { pointer-events: none } rather than anything here: viewport-overlay is already transparent to the pointer and its children deliberately are not, which is the asymmetry that lets a toolbar sit in the same overlay.
Fields and properties (2)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
public SceneViewport? OwnerThe pane whose band this draws.
Methods (2)
protected override void OnCreated()Builds whatever this element is made of, once, as it joins a document.
protected override void OnDraw(DrawContext context)Draws whatever this element is, beyond what a stylesheet can describe.
Used by (1)
- ViewportChromeVixen.Editor.App