VisualYSnappingGuidelines Property

Visual.VisualYSnappingGuidelines Property


Gets or sets the y-coordinate (horizontal) guideline collection.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

protected internal DoubleCollection VisualYSnappingGuidelines { get; protected set; }

Property Value

Type: System.Windows.Media.DoubleCollection

The y-coordinate guideline collection of the visual.

Pixel snapping is the process in which content layout is fixed so that object edges are rendered on device-specific pixels. The WPF graphics system uses device-independent units to enable resolution and device independence. Each automatically scales with the system's dots per inch (dpi) setting. This provides WPF applications proper scaling for different dpi settings and makes the application automatically dpi-aware.GTMT

However, this dpi independence can create irregular edge rendering due to . These artifacts, commonly seen as blurry, or "soft" edges, can occur when the location of an edge falls in the middle of a device pixel rather than between device pixels. To address this issue, WPF provides a way for object edges in a visual tree to "snap" to device pixels, eliminating the soft edges produced by anti-aliasing.GTMT

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft