Enum WpfPaintOrder
- Namespace
- SharpVectors.Renderers.Wpf
- Assembly
- SharpVectors.Rendering.Wpf.dll
Represents the SVG paint-order CSS property value. Specifies the order in which fill, stroke, and markers are rendered on an element.
public enum WpfPaintOrder
Fields
Normal = 0Default: fill, stroke, markers Fill is drawn first, stroke appears on top (WPF default behavior)
Stroke = 1Stroke first: stroke, fill, markers Stroke is drawn first, fill appears on top This creates the effect of an outline with a colored interior
Fill = 2Fill explicit: fill, stroke, markers Explicit specification of fill-first order (same as Normal)
Markers = 3Markers first: markers, stroke, fill Markers are drawn first (for future enhanced marker support)
Remarks
The paint-order property allows you to change the rendering order of fill, stroke, and markers. By default (Normal), fill is drawn first, then stroke (which appears on top), then markers.
This is particularly useful for: - Icons with visible outlines/strokes - Text with colored outlines - Graphics where the stroke should be the primary visual
Reference: https://www.w3.org/TR/svg2/painting.html#PaintOrder