Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 3.0
Class Library
 XSnappingGuidelines Property

  Switch on low bandwidth view
This page is specific to
.NET Framework 3.0

Other versions are also available for the following:
ContainerVisual.XSnappingGuidelines Property
Gets or sets the X (horizontal) guideline for the ContainerVisual.

Namespace: System.Windows.Media
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

Visual Basic (Declaration)
Public Property XSnappingGuidelines As DoubleCollection
Visual Basic (Usage)
Dim instance As ContainerVisual
Dim value As DoubleCollection

value = instance.XSnappingGuidelines

instance.XSnappingGuidelines = value
C#
public DoubleCollection XSnappingGuidelines { get; set; }
C++
public:
property DoubleCollection^ XSnappingGuidelines {
    DoubleCollection^ get ();
    void set (DoubleCollection^ value);
}
J#
/** @property */
public DoubleCollection get_XSnappingGuidelines ()

/** @property */
public void set_XSnappingGuidelines (DoubleCollection value)
JScript
public function get XSnappingGuidelines () : DoubleCollection

public function set XSnappingGuidelines (value : DoubleCollection)
XAML Property Element Usage
<object>
  <object.XSnappingGuidelines>
    <DoubleCollection .../>
  </object.XSnappingGuidelines>
</object>
XAML Attribute Usage
<object XSnappingGuidelines="DoubleCollection" .../>

Property Value

The horizontal guideline.

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 device independent pixel 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.

However, this dpi independence can create irregular edge rendering due to anti-aliasing. 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 through pixel snapping, eliminating the soft edges produced by anti-aliasing.

For more information, see Pixel Snapping in WPF Applications.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker