Table of Contents

Class ResourceKeyResolver

Namespace
SharpVectors.Renderers
Assembly
SharpVectors.Rendering.Wpf.dll

The default implememation of the IResourceKeyResolver interface. It implementations the default method of resolving the resource key; either by the unmodified SVG file name, or a formatted name using the file name and/or resource index if a format string is provided.

[Serializable]
public sealed class ResourceKeyResolver : WpfSettings<ResourceKeyResolver>, ICloneable, IResourceKeyResolver, IXmlSerializable
Inheritance
ResourceKeyResolver
Implements
Inherited Members

Constructors

ResourceKeyResolver()
ResourceKeyResolver(string)

Fields

DefaultBrushNameFormat
DefaultColorNameFormat
DefaultPenNameFormat
DefaultResourceNameFormat
TagName
TagNumber
XmlTagName

Properties

IsValid

Gets a value specifying whether the resource key resolver is valid or not.

NameFormat
ResolverType

Gets a value specifying the resource key resolver type.

Methods

BeginResolve()

This signals the start of a resource key resolving process.

Clone()

This creates a new build object that is a deep copy of the current instance.

EndResolve()

This signals the end of a resource key resolving process.

GetResolver(ResourceKeyResolverType)
ReadXml(XmlReader)

This reads and sets its state or attributes stored in a XML format with the given reader.

Resolve(DependencyObject, int, string, string)

Generates the resource key to be applied to the specified resource object, created from the file name and from the specified source (directory).

ValidateNameFormat(string, bool)
ValidateResourceNameFormat(string)
WriteXml(XmlWriter)

This writes the current state or attributes of this object, in the XML format, to the media or storage accessible by the given writer.