Click or drag to resize
AB4D logo

ReaderSvgGetCustomSvgElementNameCallback Field

GetCustomSvgElementNameCallback can be used to provide custom naming of WPF objects created from svg elements. The object names are written into NamedObjects dictionary. Note that when IsCorrectingNamesForWpf or MakeNamesUnique are true, the name can be corrected after calling the GetCustomSvgElementNameCallback. Also names used for XAML are always corrected.

Namespace:  Ab2d
Assembly:  Ab2d.ReaderSvg (in Ab2d.ReaderSvg.dll) Version: 7.1.7295.1040
Syntax
C#
public ReaderSvgGetCustomSvgElementNameDelegate GetCustomSvgElementNameCallback

Field Value

Type: ReaderSvgGetCustomSvgElementNameDelegate
Remarks

GetCustomSvgElementNameCallback can be used to provide custom naming of WPF objects created from svg elements.

Note that when IsCorrectingNamesForWpf is true, the name can be corrected after calling the GetCustomSvgElementNameCallback.

The GetCustomSvgElementNameCallback get two parameters:
- svg name defined in svg file (can be null)
- WPF objects created from svg element.

The GetCustomSvgElementNameCallback can also return null or empty string. In this case the name will not be written to NamedObjects dictionary.

See Also