Gets or sets a value that determines whether to use rounding behavior that aligns layout to whole pixels.

<object UseLayoutRounding="bool" .../>
value = object.UseLayoutRounding
object.UseLayoutRounding = value

Type: Boolean

true if rendering and layout should use rounding to whole pixels; otherwise, false.

This property is read/write. The default is true.

UseLayoutRounding is available for any UIElement object. However, you typically set it only on the root element in XAML.

Important noteImportant Note:

If XAML and script that were originally written for Silverlight 1.0 are run on a Silverlight 2 client, UseLayoutRounding might affect rendering of the XAML. For more information, see the UseLayoutRounding property.

Silverlight 2

Community Additions