Click or drag to resize
AB4D logo

ReaderSvgBeforeWpfObjectCreatedDelegate Delegate

BeforeWpfObjectCreatedDelegate is used for BeforeWpfObjectCreatedCallback to provide a way to create custom WPF objects from svg elements.

Namespace:  Ab2d
Assembly:  Ab2d.ReaderSvg (in Ab2d.ReaderSvg.dll) Version: 7.1.7295.1040
Syntax
C#
public delegate FrameworkElement BeforeWpfObjectCreatedDelegate(
	string svgElementOuterXml,
	string objectName,
	IAddChild parentObject
)

Parameters

svgElementOuterXml
Type: SystemString
OuterXml text for the svg element
objectName
Type: SystemString
name of the objects - read from svg element attributes based on the value of the NamedObjectsSource
parentObject
Type: System.Windows.MarkupIAddChild
parent WPF object that the created objects will be added to

Return Value

Type: FrameworkElement
When a WPF object as FrameworkElement is returned, then it is added to the parentObject. When null is returned, then standard ReaderSvg code is used to create a WPF object from the svg element.
See Also