Click or drag to resize
AB4D logo

BaseXamlWriterSettingsRootObject Property

Gets or sets a string to specify a custom root object. If null or empty the last read object will be set as root object. (example values: "UserControl" or "Window").

Namespace:  Ab2d.Common.ReaderSvg
Assembly:  Ab2d.ReaderSvg (in Ab2d.ReaderSvg.dll) Version: 7.1.7295.1040
Syntax
C#
public string RootObject { get; set; }

Property Value

Type: String
Remarks

RootObject specifies the object that will be used as a root objects in the returned xaml.

If null or empty the last read object will be set as root object.

With setting the RootObject a custom object can be used as a root object. For example "UserControl" or "Window".

It is also possible to specify more then one root object - for example "UserControl;Grid;Grid". This will use UserControl as a root object and than add Grid as its child. The read objects will be then added to the Grid.

See Also