Freigeben über


UseLayoutRounding

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Property 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.

Managed Equivalent

UseLayoutRounding

Remarks

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.

Version Information

Silverlight 2