Skip to main content
All docs
V25.1
  • WpfSvgRenderer.EnableSvgMask Field

    Identifies whether to support SVG mask elements during vector image rendering in WPF applications.

    Namespace: DevExpress.Xpf.Core.Native

    Assembly: DevExpress.Xpf.Core.v25.1.dll

    NuGet Package: DevExpress.Wpf.Core

    Declaration

    public static bool EnableSvgMask

    Field Value

    Type Default Description
    Boolean True

    true to support SVG mask elements during vector image rendering in WPF applications; otherwise, false.

    Remarks

    When the EnableSvgMask property is set to true (default), the renderer processes <mask> elements in SVG images and applies masking effects during rendering. This operation can significantly increase memory and CPU usage when rendering complex SVG files with a large number of masked elements.

    Set the EnableSvgMask property to false to skip mask processing and improve performance in the following scenarios:

    • Large SVG images with thousands of masked elements

    • Architectural diagrams, maps, or other technical drawings

    • Applications that dynamically load multiple SVG with masked elements at runtime

    See Also