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
Syntax
C#
public bool WriteTransformationsAsElement { get; set; }

Property Value

Type: Boolean
Remarks

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

<Canvas>
<RenderTransform>
<MatrixTransform Matrix="1 0 0 1 10 20"/>
</RenderTransform>
...

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

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

NOTE:
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