Click or drag to resize
AB4D logo

BaseXamlWriterSettingsWriteTransformationsAsElement Property

Gets or sets a Boolean that specifies if the transformations are written as inner elements or as attributes.

Namespace:  Ab2d.Common.ReaderSvg
Assembly:  Ab2d.ReaderSvg (in Ab2d.ReaderSvg.dll) Version: 7.1.7295.1040
public bool WriteTransformationsAsElement { get; set; }

Property Value

Type: Boolean

If WriteTransformationsAsElement is true than the transformations are written as inner elements. For example:

<MatrixTransform Matrix="1 0 0 1 10 20"/>

If WriteTransformationsAsElement is false than the transformations are written as attributes. For example:

<Canvas RenderTransform="1 0 0 10 20"...

For Silverlight projects the visual designer in Visual Studio 2010 and Expression Blend may not parse transformations as attributes correctly! It works correctly for WPF projects. So for Silverlight projects it is recommended to write transformations as elements.

See Also