Click or drag to resize
AB4D logo

IResourceXamlWriterSettings Interface

IResourceXamlWriterSettings interface is used to specify setting that tell Xaml Writer how to write Pens and Brushes as resources.

Namespace:  Ab2d.Common.ReaderSvg
Assembly:  Ab2d.ReaderSvg (in Ab2d.ReaderSvg.dll) Version: 7.1.7295.1040
Syntax
C#
public interface IResourceXamlWriterSettings

The IResourceXamlWriterSettings type exposes the following members.

Properties
  NameDescription
Public propertyResolveResourceKey
Callback to customize the resource key names used in GetXaml when ResourcesCountLimit is bigger than 0.
Public propertyResourcesBrushStartIndex
Public propertyResourcesCountLimit
Defines if the pens and brushed are written into resources. If ResourcesCountLimit is equal or less than 0 than resources are not used. If ResourcesCountLimit is 1 than all pens and brushes are written to resources. If ResourcesCountLimit is 2 (or higher) than all pens and brushes that are used 2 (or more) times are written to resources.
Public propertyResourcesPenKeyFormatString
Format string used to format the Pen resource keys. Default value is "Pen{0}"
Public propertyResourcesPenStartIndex
Start index used with ResourcesPenKeyFormatString
Public propertyResourcesSolidColorBrushKeyFormatString
Format string used to format the SolidColorBrush resource keys. Default value is "Brush{0}"
Top
See Also