Property ViewBoxMode
- Namespace
- SharpVectors.Renderers.Wpf
- Assembly
- SharpVectors.Rendering.Wpf.dll
ViewBoxMode
Gets or sets the viewBox handling mode for SVG rendering.
public ViewBoxMode ViewBoxMode { get; set; }
Property Value
- ViewBoxMode
A ViewBoxMode value that determines how SVG viewBox dimensions are calculated. The default value is ComputedUnion.
Remarks
Strict uses the explicitly declared viewBox and width/height attributes from the SVG root element (pre-1.8.4 behavior).
ComputedUnion uses the computed union of all rendered element bounds, providing the true visual footprint (v1.8.4+ default behavior). This can cause SVGs without explicit viewBox dimensions to stretch to fill available space, which is why both modes are offered.