SharpVectors.Converters.Wpf
This converts a directory (and optionally the sub-directories) of SVG files to XAML files in a specified directory,
maintaining the original directory structure.
It uses or converter to process each SVG file
in the specified directory.
Initializes a new instance of the
class with the specified drawing or rendering settings.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
Gets or sets a value indicating whether the directory copying is
recursive, that is includes the sub-directories.
This property is if the sub-directories are
included in the directory copy; otherwise, it is .
The default is .
Gets or sets a value indicating whether an existing file is overwritten.
This property is if existing file is overwritten;
otherwise, it is . The default is .
Gets or sets a value indicating whether the security settings of the
copied file is retained.
This property is if the security settings of the
file is also copied; otherwise, it is . The
default is .
Gets or sets a value indicating whether the copy operation includes
hidden directories and files.
This property is if hidden directories and files
are included in the copy operation; otherwise, it is
. The default is .
Gets a value indicating whether a writer error occurred when
using the custom XAML writer.
This is if an error occurred when using
the custom XAML writer; otherwise, it is .
Gets or sets a value indicating whether to fall back and use
the .NET Framework XAML writer when an error occurred in using the
custom writer.
This is if the converter falls back to using
the system XAML writer when an error occurred in using the custom
writer; otherwise, it is . If ,
an exception, which occurred in using the custom writer will be
thrown. The default is .
Gets the source directory of the SVG files to be converted.
A specifying the source directory of
the SVG files.
Gets the destination directory of the converted XAML files.
A specifying the destination directory of
the converted XAML files.
Gets the full path of the last SVG file not successfully converted.
A string containing the full path of the last SVG file not
successfully converted to the XAML
Whenever an error occurred in the conversion of a file, the
conversion process will stop. Use this property to retrieve the full
path of the SVG file causing the error.
Gets or sets a value indicating whether to save static or bitmap image output.
This is if the conversion saves static or bitmap image file; otherwise,
it is . The default value is .
Gets or set the bitmap encoder type to use in encoding the drawing
to an image file.
An enumeration of the type specifying
the bitmap encoder. The default is the .
Gets or sets a custom bitmap encoder to use in encoding the drawing
to an image file.
A derived object specifying the bitmap
encoder for encoding the images. The default is ,
and the property determines the encoder used.
If the value of this is set, it must match the MIME type or file
extension defined by the property for it
to be used.
Convert the SVG files in the specified source directory, saving the
results in the specified destination directory.
A specifying the source directory of
the SVG files.
A specifying the source directory of
the SVG files.
If the is .
-or-
If the is .
If the directory specified by does not
exists.
This converts an SVG file to the corresponding XAML file, which can be viewed in WPF application.
The root object in the converted file is .
This is the last drawing generated.
Initializes a new instance of the class.
Initializes a new instance of the class
with the specified drawing or rendering settings.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
Initializes a new instance of the class
with the specified drawing or rendering settings and the saving options.
This specifies whether to save result object tree in XAML file.
This specifies whether to save result object tree in ZAML file. The
ZAML is simply a G-Zip compressed XAML format, similar to the SVGZ.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
Gets a value indicating whether a writer error occurred when
using the custom XAML writer.
This is if an error occurred when using
the custom XAML writer; otherwise, it is .
Gets or sets a value indicating whether to fall back and use
the .NET Framework XAML writer when an error occurred in using the
custom writer.
This is if the converter falls back to using
the system XAML writer when an error occurred in using the custom
writer; otherwise, it is . If ,
an exception, which occurred in using the custom writer will be
thrown. The default is .
Gets the last created drawing.
A specifying the last converted drawing.
Gets the output XAML file path if generated.
A string containing the full path to the XAML if generated; otherwise,
it is .
Gets the output ZAML file path if generated.
A string containing the full path to the ZAML if generated; otherwise,
it is .
This performs the conversion of the specified SVG file, and saves
the output to an XAML file.
This performs the conversion of the specified SVG file, and saves
the output to an XAML file with the same file name.
The full path of the SVG source file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
If the is empty.
-or-
If the does not exists.
This performs the conversion of the specified SVG file, and saves
the output to the specified XAML file.
The full path of the SVG source file.
The output XAML file. This is optional. If not specified, an XAML
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
If the is empty.
-or-
If the does not exists.
This performs the conversion of the specified SVG source, and saves
the output to the specified XAML file.
A stream providing access to the SVG source data.
The output XAML file. This is optional. If not specified, an XAML
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
-or-
If the is .
If the is empty.
This performs the conversion of the specified SVG source, and saves
the output to the specified XAML file.
A text reader providing access to the SVG source data.
The output XAML file. This is optional. If not specified, an XAML
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
-or-
If the is .
If the is empty.
This performs the conversion of the specified SVG source, and saves
the output to the specified XAML file.
An XML reader providing access to the SVG source data.
The output XAML file. This is optional. If not specified, an XAML
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
-or-
If the is .
If the is empty.
This converts a SVG file to object, and can
optionally save the result to a file as XAML.
This is the last drawing generated.
Initializes a new instance of the class.
Initializes a new instance of the class
with the specified drawing or rendering settings.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
A value indicating whether this converter is embedded or not.
Initializes a new instance of the class
with the specified drawing or rendering settings, the saving options
and the working directory.
This specifies whether to save result object tree in XAML file.
This specifies whether to save result object tree in ZAML file. The
ZAML is simply a G-Zip compressed XAML format, similar to the SVGZ.
The working directory, where converted outputs are saved.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
Gets a value indicating whether a writer error occurred when
using the custom XAML writer.
This is if an error occurred when using
the custom XAML writer; otherwise, it is .
Gets or sets a value indicating whether to fall back and use
the .NET Framework XAML writer when an error occurred in using the
custom writer.
This is if the converter falls back to using
the system XAML writer when an error occurred in using the custom
writer; otherwise, it is . If ,
an exception, which occurred in using the custom writer will be
thrown. The default is .
Gets the output image file path if generated.
A string containing the full path to the image if generated; otherwise,
it is .
Gets the output XAML file path if generated.
A string containing the full path to the XAML if generated; otherwise,
it is .
Gets the output ZAML file path if generated.
A string containing the full path to the ZAML if generated; otherwise,
it is .
Gets or sets the last created drawing.
A specifying the last converted drawing.
Reads in the specified SVG file and converts it to WPF drawing.
Reads in the specified SVG file and converts it to WPF drawing.
The full path of the SVG source file.
This returns the representing the SVG file,
if successful; otherwise, it returns .
If the is .
If the is empty.
-or-
If the does not exists.
Reads in the specified SVG file and converts it to WPF drawing.
A specifying the path to the SVG file.
This returns the representing the SVG file,
if successful; otherwise, it returns .
If the is .
Reads in the specified SVG file stream and converts it to WPF drawing.
The source SVG file stream.
This returns the representing the SVG file,
if successful; otherwise, it returns .
If the is .
Reads in the specified source from the SVG file reader and converts
it to WPF drawing.
A text reader providing access to the SVG file data.
This returns the representing the SVG file,
if successful; otherwise, it returns .
If the is .
Reads in the specified source SVG file reader and converts it to
WPF drawing.
An XML reader providing access to the SVG file data.
This returns the representing the SVG file,
if successful; otherwise, it returns .
If the is .
Reads in the specified SVG file, converting it to WPF drawing and
saving the results to the specified directory if successful.
The full path of the SVG source file.
The destination of the output XAML file, if the saving properties
are enabled.
This returns the representing the SVG file,
if successful; otherwise, it returns .
If the is .
If the is empty.
-or-
If the does not exists.
Saves the last converted file to the specified file name.
The full path of the output file.
A value indicating whether to save the output to XAML file.
A value indicating whether to save the output to ZAML file, which
is a G-zip compression of the XAML file.
This returns if either
or is and the operation
is successful.
If the output serialization properties are not enabled, this method
can be used to save the output to a file.
This will not change the output serialization properties of this object.
If there is no converted drawing from a previous conversion process
to be saved.
This releases the unmanaged resources used by the
and optionally releases the managed resources.
This is if managed resources should be
disposed; otherwise, .
This specifies the encoder type used to encode a collection of
bitmap frame objects to an image stream.
This is used by the converter.
Specifies an encoder that is used to encode bitmap (BMP)
format images, that is
.
Specifies an encoder that is used to encode Graphics Interchange
Format (GIF) images, that is
.
Specifies an encoder that is used to encode Joint Photographics
Experts Group (JPEG) format images, that is
.
Specifies an encoder that is used to encode Portable Network
Graphics (PNG) format images, that is
.
Specifies an encoder that is used to encode Tagged Image File
Format (TIFF) images, that is
.
Specifies an encoder that is used to Microsoft Windows Media Photo
(WDP) images, that is
.
This converts the SVG file to static or bitmap image, which is saved to a file.
The image is save with the format,
since that is the only pixel format which does not throw an exception
with the .
The DPI used is 96.
This is the last drawing generated.
Initializes a new instance of the class.
Initializes a new instance of the class
with the specified drawing or rendering settings.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
Initializes a new instance of the class
with the specified drawing or rendering settings and the saving options.
This specifies whether to save result object tree in image file.
This specifies whether to save result object tree in ZAML file. The
ZAML is simply a G-Zip compressed image format, similar to the SVGZ.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
Gets a value indicating whether a writer error occurred when
using the custom image writer.
This is if an error occurred when using
the custom image writer; otherwise, it is .
Gets or sets a value indicating whether to fall back and use
the .NET Framework image writer when an error occurred in using the
custom writer.
This is if the converter falls back to using
the system image writer when an error occurred in using the custom
writer; otherwise, it is . If ,
an exception, which occurred in using the custom writer will be
thrown. The default is .
Gets or set the bitmap encoder type to use in encoding the drawing
to an image file.
An enumeration of the type specifying
the bitmap encoder. The default is the .
Gets or sets a custom bitmap encoder to use in encoding the drawing
to an image file.
A derived object specifying the bitmap
encoder for encoding the images. The default is ,
and the property determines the encoder used.
If the value of this is set, it must match the MIME type or file
extension defined by the property for it
to be used.
Gets the last created drawing.
A specifying the last converted drawing.
Gets the output XAML file path if generated.
A string containing the full path to the XAML if generated; otherwise,
it is .
Gets the output ZAML file path if generated.
A string containing the full path to the ZAML if generated; otherwise,
it is .
This performs the conversion of the specified SVG file, and saves
the output to an image file.
This performs the conversion of the specified SVG file, and saves
the output to an image file with the same file name.
The full path of the SVG source file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
If the is empty.
-or-
If the does not exists.
This performs the conversion of the specified SVG file, and saves
the output to the specified image file.
The full path of the SVG source file.
The output image file. This is optional. If not specified, an image
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
If the is empty.
-or-
If the does not exists.
This performs the conversion of the specified SVG source, and saves
the output to the specified image file.
A stream providing access to the SVG source data.
The output image file. This is optional. If not specified, an image
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
-or-
If the is .
If the is empty.
This performs the conversion of the specified SVG source, and saves
the output to the specified image file.
A text reader providing access to the SVG source data.
The output image file. This is optional. If not specified, an image
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
-or-
If the is .
If the is empty.
This performs the conversion of the specified SVG source, and saves
the output to the specified image file.
An XML reader providing access to the SVG source data.
The output image file. This is optional. If not specified, an image
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
-or-
If the is .
If the is empty.
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Initializes a new instance of the
class with the specified drawing or rendering settings.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
Component that visualizes svg document contents.
Gets or sets svg document source.
Gets or sets an item style that will be applied to all svg elements.
This style will be used as a BasedOn style for all shapes created from
svg elements.
Gets the bounding box of the svg document.
Unloads loaded svg.
This converts the SVG file to static or bitmap image, which is saved to a file.
The image is save with the format,
since that is the only pixel format which does not throw an exception
with the .
The DPI used is 96.
This is the last drawing generated.
Initializes a new instance of the class.
Initializes a new instance of the class
with the specified drawing or rendering settings.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
Initializes a new instance of the class
with the specified drawing or rendering settings and the saving options.
This specifies whether to save result object tree in image file.
This specifies whether to save result object tree in ZAML file. The
ZAML is simply a G-Zip compressed image format, similar to the SVGZ.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
Gets a value indicating whether a writer error occurred when
using the custom image writer.
This is if an error occurred when using
the custom image writer; otherwise, it is .
Gets or sets a value indicating whether to fall back and use
the .NET Framework image writer when an error occurred in using the
custom writer.
This is if the converter falls back to using
the system image writer when an error occurred in using the custom
writer; otherwise, it is . If ,
an exception, which occurred in using the custom writer will be
thrown. The default is .
Gets or set the bitmap encoder type to use in encoding the drawing
to an image file.
An enumeration of the type specifying
the bitmap encoder. The default is the .
Gets or sets a custom bitmap encoder to use in encoding the drawing
to an image file.
A derived object specifying the bitmap
encoder for encoding the images. The default is ,
and the property determines the encoder used.
If the value of this is set, it must match the MIME type or file
extension defined by the property for it
to be used.
Gets the last created drawing.
A specifying the last converted drawing.
This performs the conversion of the specified SVG file, and saves
the output to an image file.
This performs the conversion of the specified SVG file, and saves
the output to the specified image file.
The full path of the SVG source file.
The output image file. This is optional. If not specified, an image
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
If the is empty.
-or-
If the does not exists.
This performs the conversion of the specified SVG source, and saves
the output to the specified image file.
A stream providing access to the SVG source data.
The output image file. This is optional. If not specified, an image
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
-or-
If the is .
If the is empty.
This performs the conversion of the specified SVG source, and saves
the output to the specified image file.
A text reader providing access to the SVG source data.
The output image file. This is optional. If not specified, an image
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
-or-
If the is .
If the is empty.
This performs the conversion of the specified SVG source, and saves
the output to the specified image file.
An XML reader providing access to the SVG source data.
The output image file. This is optional. If not specified, an image
file is created in the same directory as the SVG file.
This returns if the conversion is successful;
otherwise, it return .
If the is .
-or-
If the is .
If the is empty.
This is an extension of the WPF control to provide SVG-based image sources.
Identifies the dependency property.
Identifies the dependency property.
The for the AppName property.
Initializes a new instance of the class.
Gets or sets the name of the parent assembly for this element.
A string containing the name of the parent assembly or the name of the assembly containing SVG file
referenced on this control in XAML, if the source type is .
Gets or sets the path to the SVG file to load into this .
A specifying the path to the SVG source file.
The file can be located on a computer, network or assembly resources.
Settings this to will close any opened diagram.
This is the same as the property, and added for consistency.
Gets or sets the SVG contents to load into this .
A specifying the embedded SVG contents.
Settings this to will close any opened diagram.
Raises the Initialized event. This method is invoked whenever IsInitialized is set to true.
Event data for the event.
This handles changes in the rendering settings of this control.
Performs the conversion of a valid SVG source to the .
This returns if successful; otherwise, it
returns .
Performs the conversion of a valid SVG source file to the .
A defining the path to the SVG source.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
This returns if successful; otherwise, it
returns .
Performs the conversion of a valid SVG source stream to the .
A stream providing access to the SVG source data.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
This returns if successful; otherwise, it
returns .
This is a control for viewing SVG file in WPF applications.
It extends the drawing canvas, , instead of generic control,
therefore any interactivity support implemented in the drawing canvas will be available in the .
Identifies the dependency property.
Identifies the dependency property.
Identifies the dependency property.
Identifies the dependency property.
The DependencyProperty for the MessageFontFamily property.
Flags: Can be used in style rules
Default Value: System Dialog Font
The DependencyProperty for the MessageFontSize property.
Flags: Can be used in style rules
Default Value: 48 pixels
The DependencyProperty for the MessageOpacity property.
Flags: Can be used in style rules
Default Value: 1 (full opacity)
The DependencyProperty for the MessageText property.
Flags: Can be used in style rules
Default Value: "Loading..."
The DependencyProperty for the MessageBackground property.
Flags: Can be used in style rules
Default Value:
The DependencyProperty for the MessageFillBrush property.
Flags: Can be used in style rules
Default Value:
The DependencyProperty for the MessageStrokeBrush property.
Flags: Can be used in style rules
Default Value:
The for the AppName property.
Initializes a new instance of the class.
Static constructor to define metadata for the control (and link it to the style in Generic.xaml).
Gets or sets the name of the parent assembly for this element.
A string containing the name of the parent assembly or the name of the assembly containing SVG file
referenced on this control in XAML, if the source type is .
Gets or sets the path to the SVG file to load into this .
A specifying the path to the SVG source file. The file can be located on
a computer, network or assembly resources.
Settings this to will close any rendered SVG diagram.
Gets or sets the path to the SVG file to load into this .
A specifying the path to the SVG source file.
The SVG file can be located on a computer, network or assembly resources.
Settings this to will close any rendered SVG diagram.
This is the same as the property, it is added for consistency in naming the SVG sources.
Gets or sets the SVG contents to load into this .
A specifying the embedded SVG contents.
Settings this to will close any opened diagram.
Gets or sets the to the SVG source to load into this
.
A specifying the stream to the SVG source.
Settings this to will close any opened diagram.
The stream source has precedence over the Uri property.
If set (not ), the stream source will be rendered instead of the Uri source.
WPF controls do not implement the interface and cannot properly dispose any
stream set to it. To avoid this issue and also any problem of the user accidentally closing the stream,
this control makes a copy of the stream to memory stream.
Gets or sets a value indicating whether to automatically resize this
based on the size of the loaded drawing.
This is if this is automatically resized based on the size of the
loaded drawing; otherwise, it is . The default is , and the
user-defined size or the parent assigned layout size is used.
Gets or sets a value indicating whether the path geometry is optimized using the .
This is if the path geometry is optimized using the ;
otherwise, it is . The default is .
Gets or sets a value indicating whether the texts are rendered as path geometry.
This is if texts are rendered as path geometries; otherwise, this is
. The default is .
The text features of the SVG format are complex and difficult to fully support without directly reverting
the text paths (or glyph geometry). This options will, therefore, be removed in future versions of the library,
as it is not always honored when set to .
Gets or sets a value indicating whether the SharpVectors.Runtime.dll classes are used in the
generated output.
This is if the SharpVectors.Runtime.dll classes and types are used in the
generated output; otherwise, it is . The default is .
The use of the SharpVectors.Runtime.dll prevents the hard-coded font path generated by the
class, support for embedded images etc.
Gets or sets the main culture information used for rendering texts.
An instance of the specifying the main
culture information for texts. The default is the English culture.
This is the culture information passed to the class instance for the text rendering.
The library does not currently provide any means of splitting texts into its multi-language parts.
Gets or sets a value to indicate turning off viewbox at the root of the drawing.
For image outputs, this will force the original size to be saved.
The default value is .
There are reported cases where are diagrams displayed in Inkscape program, but will not show when converted.
These are diagrams on the drawing canvas of Inkspace but outside the svg viewbox.
When converted the drawings are also converted but not displayed due to clipping. Setting this property
to will clear the clipping region on conversion.
Gets or sets a value to indicate preserving the original viewbox size when saving images.
For image outputs, this will force the original size to be saved.
The default value is . However, the ImageSvgConverter converted
sets this to by default.
Setting this to will cause the rendering process to draw a transparent box around
the output, if a viewbox is defined. This will ensure that the original image size is saved.
Gets or sets a value to indicate applying a translate transform to the viewbox to ensure
it is visible when rendered.
This determines whether a transformation is applied to the rendered drawing. For drawings where the top-left
position of the viewbox is off the screen, due to negative values, this will ensure the drawing is visible.
The default value is . Set this value to if
you wish to apply your own transformations to the drawings.
Gets the drawing from the SVG file conversion.
An instance of the specifying the converted drawings
which is rendered in this canvas.
Gets or sets the font family of the desired font for the message text.
A specifying the font for the message text.
The default value is .
Gets or sets the size of the desired font for the message text.
A value specifying the font size of the message text. The default is 48 pixels.
The font size must be a positive number.
Gets or sets the opacity factor applied to the entire message text when it is
rendered in the user interface (UI).
The opacity factor. Default opacity is 1.0. Expected values are between 0.0 and 1.0.
Gets or sets the content of the message.
A specifying the content of the message text.
The default is "Loading...". This value can be overriden in the method.
Gets or sets a brush that describes the background of a message text.
A specifying the brush that is used to fill the background of the
message text. The default is . If set to ,
the background will not be drawn.
Gets or sets the brush with which to fill the message text.
This is optional, and can be . If the brush is , no fill is drawn.
A specifying the fill of the message text. The default is .
If both the fill and stroke brushes of the message text are , no text is drawn.
Gets or sets the brush of the with which to stroke the message text.
This is optional, and can be . If the brush is , no stroke is drawn.
A specifying the brush of the for stroking the message text.
The default is .
If both the fill and stroke brushes of the message text are , no text is drawn.
This sets the source SVG for a by using the supplied Uniform Resource Identifier (URI)
and optionally processing the result asynchronously.
A reference to the SVG source file.
A value indicating whether to process the result asynchronously. The default value is ,
the SVG conversion is processed synchronously.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
This sets the source SVG for a by accessing text content
and optionally processing the result asynchronously.
The stream source that sets the SVG source value.
A value indicating whether to process the result asynchronously. The default value is ,
the SVG conversion is processed synchronously.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
This sets the source SVG for a by accessing a stream
and optionally processing the result asynchronously.
The stream source that sets the SVG source value.
A value specifying whether to use a copy of the stream. The default is ,
the SVG source stream is copied, rendered and stored.
A value indicating whether to process the result asynchronously. The default value is ,
the SVG conversion is processed synchronously.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
The control will by default create a copy of the source stream to prevent any effect of disposing.
If the source stream is stored, then use the to prevent the control
from creating its own copy.
This sets the source SVG for a by using the supplied Uniform Resource Identifier (URI)
and processing the result asynchronously.
A reference to the SVG source file.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
This sets the source SVG for a by accessing text contents
and processing the result asynchronously.
The stream source that sets the SVG source value.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
This sets the source SVG for a by accessing a stream
and processing the result asynchronously.
The stream source that sets the SVG source value.
A value specifying whether to use a copy of the stream. The default is ,
the SVG source stream is copied, rendered and stored.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
The control will by default create a copy of the source stream to prevent any effect of disposing.
If the source stream is stored, then use the to prevent the control
from creating its own copy.
This clears the of any drawn diagram and optionally displays a
message.
A value indicating whether to display a message after clearing the SVG rendered diagram.
The value is , not message is displayed.
This specifies the message to be displayed after clearing the diagram. Setting this parameter
to a non-empty text will override any message set in the .
The default value is .
Raises the Initialized event. This method is invoked whenever IsInitialized is set to true.
Event data for the event.
Gets the rendering settings or options to be used in rendering the SVG in this control.
An instance of specifying the rendering options or settings.
This handles changes in the rendering settings of this control.
This handles changes in the automatic resizing property of this control.
Performs the conversion of a valid SVG source to the .
This returns if successful; otherwise, it
returns .
Performs the conversion of a valid SVG source file to the .
A defining the path to the SVG source.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
This returns if successful; otherwise, it
returns .
Performs the conversion of a valid SVG source stream to the .
A stream providing access to the SVG source data.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
This returns if successful; otherwise, it returns .
Performs the conversion of a valid SVG source stream to the .
A stream providing access to the SVG source data.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
This returns if successful; otherwise, it returns .
Gets or sets the base URI of the current application context.
The base URI of the application context.
Identifies the dependency property.
Identifies the dependency property.
The DependencyProperty for the MessageFontFamily property.
Flags: Can be used in style rules
Default Value: System Dialog Font
The DependencyProperty for the MessageFontSize property.
Flags: Can be used in style rules
Default Value: 48 pixels
The DependencyProperty for the MessageOpacity property.
Flags: Can be used in style rules
Default Value: 1 (full opacity)
The DependencyProperty for the MessageText property.
Flags: Can be used in style rules
Default Value: "Loading..."
The DependencyProperty for the MessageBackground property.
Flags: Can be used in style rules
Default Value:
The DependencyProperty for the MessageFillBrush property.
Flags: Can be used in style rules
Default Value:
The DependencyProperty for the MessageStrokeBrush property.
Flags: Can be used in style rules
Default Value:
Gets or sets the path to the SVG file to load into this
.
A specifying the path to the SVG source file.
The file can be located on a computer, network or assembly resources.
Settings this to will close any opened diagram.
Gets or sets the to the SVG source to load into this
.
A specifying the stream to the SVG source.
Settings this to will close any opened diagram.
The stream source has precedence over the Uri property.
If set (not ), the stream source will be rendered instead of the Uri source.
WPF controls do not implement the interface and cannot properly dispose any
stream set to it. To avoid this issue and also any problem of the user accidentally closing the stream,
this control makes a copy of the stream to memory stream.
Gets or sets a value indicating whether to automatically resize this
based on the size of the loaded drawing.
This is if this is
automatically resized based on the size of the loaded drawing;
otherwise, it is . The default is
, and the user-defined size or the parent assigned
layout size is used.
Gets or sets a value indicating whether the path geometry is
optimized using the .
This is if the path geometry is optimized
using the ; otherwise, it is
. The default is .
Gets or sets a value indicating whether the texts are rendered as
path geometry.
This is if texts are rendered as path
geometries; otherwise, this is . The default
is .
Gets or sets a value indicating whether the SharpVectors.Runtime.dll
classes are used in the generated output.
This is if the SharpVectors.Runtime.dll
classes and types are used in the generated output; otherwise, it is
. The default is .
The use of the SharpVectors.Runtime.dll prevents the hard-coded
font path generated by the class, support
for embedded images etc.
Gets or sets the main culture information used for rendering texts.
An instance of the specifying the main
culture information for texts. The default is the English culture.
This is the culture information passed to the
class instance for the text rendering.
The library does not currently provide any means of splitting texts
into its multi-language parts.
Gets or sets a value to indicate turning off viewbox at the root of the drawing.
For image outputs, this will force the original size to be saved.
The default value is .
There are reported cases where are diagrams displayed in Inkscape program, but will not
show when converted. These are diagrams on the drawing canvas of Inkspace but outside
the svg viewbox.
When converted the drawings are also converted but not displayed due to
clipping. Setting this property to will clear the clipping region
on conversion.
Gets or sets a value to indicate preserving the original viewbox size when saving images.
For image outputs, this will force the original size to be saved.
The default value is . However, the ImageSvgConverter converted
sets this to by default.
Setting this to will cause the rendering process to draw a transparent
box around the output, if a viewbox is defined. This will ensure that the original image
size is saved.
Gets or sets a value to indicate applying a translate transform to the viewbox to ensure
it is visible when rendered.
This determines whether a transformation is applied to the rendered drawing. For drawings
where the top-left position of the viewbox is off the screen, due to negative values, this
will ensure the drawing is visible.
The default value is . Set this value to if
you wish to apply your own transformations to the drawings.
Gets the drawing from the SVG file conversion.
An instance of the specifying the converted drawings
which is rendered in this canvas.
Gets or sets the font family of the desired font for the message text.
A specifying the font for the message text.
The default value is .
Gets or sets the size of the desired font for the message text.
A value specifying the font size of the message text. The default is 48 pixels.
The font size must be a positive number.
Gets or sets the opacity factor applied to the entire message text when it is
rendered in the user interface (UI).
The opacity factor. Default opacity is 1.0. Expected values are between 0.0 and 1.0.
Gets or sets the content of the message.
A specifying the content of the message text.
The default is "Loading...". This value can be overriden in the method.
Gets or sets a brush that describes the background of a message text.
A specifying the brush that is used to fill the background of the
message text. The default is . If set to ,
the background will not be drawn.
Gets or sets the brush with which to fill the message text.
This is optional, and can be . If the brush is , no fill is drawn.
A specifying the fill of the message text. The default is .
If both the fill and stroke brushes of the message text are , no text is drawn.
Gets or sets the brush of the with which to stroke the message text.
This is optional, and can be . If the brush is , no stroke is drawn.
A specifying the brush of the for stroking the message text.
The default is .
If both the fill and stroke brushes of the message text are , no text is drawn.
Gets or sets the base URI of the current application context.
The base URI of the application context.
This sets the source SVG for a by using the supplied Uniform Resource Identifier (URI)
and optionally processing the result asynchronously.
A reference to the SVG source file.
A value indicating whether to process the result asynchronously. The default value is ,
the SVG conversion is processed synchronously.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
This sets the source SVG for a by accessing a stream
and optionally processing the result asynchronously.
The stream source that sets the SVG source value.
A value specifying whether to use a copy of the stream. The default is ,
the SVG source stream is copied, rendered and stored.
A value indicating whether to process the result asynchronously. The default value is ,
the SVG conversion is processed synchronously.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
The control will by default create a copy of the source stream to prevent any effect of disposing.
If the source stream is stored, then use the to prevent the control
from creating its own copy.
This sets the source SVG for a by using the supplied Uniform Resource Identifier (URI)
and processing the result asynchronously.
A reference to the SVG source file.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
This sets the source SVG for a by accessing a stream
and processing the result asynchronously.
The stream source that sets the SVG source value.
A value specifying whether to use a copy of the stream. The default is ,
the SVG source stream is copied, rendered and stored.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
The control will by default create a copy of the source stream to prevent any effect of disposing.
If the source stream is stored, then use the to prevent the control
from creating its own copy.
This clears the of any drawn diagram and optionally displays a
message.
A value indicating whether to display a message after clearing the SVG rendered diagram.
The value is , not message is displayed.
This specifies the message to be displayed after clearing the diagram. Setting this parameter
to a non-empty text will override any message set in the .
The default value is .
Raises the Initialized event. This method is invoked whenever IsInitialized is set to true.
Event data for the event.
This handles changes in the rendering settings of this control.
This handles changes in the automatic resizing property of this control.
Performs the conversion of a valid SVG source to the .
This returns if successful; otherwise, it
returns .
Performs the conversion of a valid SVG source file to the .
A defining the path to the SVG source.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
This returns if successful; otherwise, it
returns .
Performs the conversion of a valid SVG source stream to the .
A stream providing access to the SVG source data.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
This returns if successful; otherwise, it
returns .
This is the base class for all SVG to WPF converters.
Required designer variable.
Initializes a new instance of the class.
Initializes a new instance of the class
with the default parameters and settings.
Initializes a new instance of the class
with the specified drawing or rendering settings.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
Initializes a new instance of the class
with the specified drawing or rendering settings and the saving options.
This specifies whether to save result object tree in XAML file.
This specifies whether to save result object tree in ZAML file. The
ZAML is simply a G-Zip compressed XAML format, similar to the SVGZ.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
This allows a converter to attempt to free resources and perform
other cleanup operations before the converter is reclaimed by
garbage collection.
Gets or sets a value indicating whether to save the conversion output to the XAML file.
This is if the conversion output is saved to the XAML file; otherwise,
it is . The default depends on the converter.
Gets or sets a value indicating whether to save the conversion output to the ZAML file.
This is if the conversion output is saved to the ZAML file; otherwise,
it is . The default depends on the converter.
The ZAML is simply a G-Zip compressed XAML format, similar to the SVGZ.
Gets or sets a value indicating whether to use the .NET framework version of the XAML writer.
This is if the .NET framework version of the XAML writer is used; otherwise,
a customized XAML writer, , is used. The default is .
The customized XAML writer is optimized for the conversion process, and it is recommended as the writer,
unless in cases where it fails to produce accurate result.
Gets or sets a brush that describes the background of a image.
The brush that is used to fill the background of the control.
The default is or transparent.
Gets the settings used by the rendering or drawing engine.
An instance of specifying all
the options for rendering or drawing.
Gets the SVG Window object created by this converter.
An instance of specifying the WPF implementation of the .
Gets the current SVG Document created by this converter.
An instance of specifying the SVG DOM currently opened by the converter;
or if no SVG document is currently opened.
Gets the horizontal dots per inch (dpi) of the static image.
The horizontal dots per inch (dpi) of the image; that is, the dots per inch (dpi) along the x-axis.
Gets the vertical dots per inch (dpi) of the static image.
The vertical dots per inch (dpi) of the image; that is, the dots per inch (dpi) along the y-axis.
This releases all resources used by the object.
This releases all resources used by the object.
This releases the unmanaged resources used by the
and optionally releases the managed resources.
This is if managed resources should be
disposed; otherwise, .
This is an extension of the WPF control to provide SVG-based image sources.
Initializes a new instance of the class.
This is an implementation of a markup extension that enables the creation
of from SVG sources.
Initializes a new instance of the
class with the default parameters.
Gets or sets a value indicating whether the path geometry is
optimized using the .
This is if the path geometry is optimized using the ;
otherwise, it is . The default is .
Gets or sets a value indicating whether the texts are rendered as
path geometry.
This is if texts are rendered as path
geometries; otherwise, this is . The default
is .
Gets or sets a value indicating whether the SharpVectors.Runtime.dll
classes are used in the generated output.
This is if the SharpVectors.Runtime.dll
classes and types are used in the generated output; otherwise, it is
. The default is .
The use of the SharpVectors.Runtime.dll prevents the hard-coded
font path generated by the class, support
for embedded images etc.
Gets or sets the main culture information used for rendering texts.
An instance of the specifying the main
culture information for texts. The default is the English culture.
This is the culture information passed to the
class instance for the text rendering.
The library does not currently provide any means of splitting texts
into its multi-language parts.
Gets or sets the project or application name of the target assembly.
A string specifying the application project name.
This is optional and is only used to resolve the resource Uri at the design time.
This converts the SVG resource specified by the Uri to .
A specifying the source of the SVG resource.
A of the converted SVG resource.
This converts the SVG resource specified by the Uri to .
A specifying the source of the SVG resource.
A of the converted SVG resource.
This uses the method to convert the SVG resource to ,
which is then wrapped in .
This implements a markup extension that enables the creation
of from SVG sources.
The SVG source file can be:
-
From the web
-
From the local computer (relative or absolute paths)
-
From the resources.
The rendering settings are provided as properties for customizations.
Initializes a new instance of the class.
Initializes a new instance of the
class with the default parameters.
Performs the conversion of a valid SVG source file to the
that is set as the value of the target
property for this markup extension.
Object that can provide services for the markup extension.
This returns if successful; otherwise, it
returns .
Converts the SVG source file to
Object that can provide services for the markup extension.
Returns the valid of the SVG source path if
successful; otherwise, it returns .
This implements a markup extension that enables the creation
of from SVG sources.
The SVG source file can be:
-
From the web
-
From the local computer (relative or absolute paths)
-
From the resources.
The rendering settings are provided as properties for customizations.
Initializes a new instance of the class.
Initializes a new instance of the
class with the default parameters.
Initializes a new instance of the
class with the specified SVG file path.
Gets or sets the SVG source file.
A string specifying the path of the SVG source file.
The default is .
Performs the conversion of a valid SVG source file to the
that is set as the value of the target
property for this markup extension.
Object that can provide services for the markup extension.
This returns if successful; otherwise, it
returns .
Converts the SVG source file to
Object that can provide services for the markup extension.
Returns the valid of the SVG source path if
successful; otherwise, it returns .
This is a control for viewing SVG file in WPF applications.
It wraps the drawing canvas, , instead of image control, therefore any
interactivity support implemented in the drawing canvas will be available in the .
Identifies the dependency property.
Identifies the dependency property.
Identifies the dependency property.
Identifies the dependency property.
The DependencyProperty for the MessageFontFamily property.
Flags: Can be used in style rules
Default Value: System Dialog Font
The DependencyProperty for the MessageFontSize property.
Flags: Can be used in style rules
Default Value: 48 pixels
The DependencyProperty for the MessageOpacity property.
Flags: Can be used in style rules
Default Value: 1 (full opacity)
The DependencyProperty for the MessageText property.
Flags: Can be used in style rules
Default Value: "Loading..."
The DependencyProperty for the MessageBackground property.
Flags: Can be used in style rules
Default Value:
The DependencyProperty for the MessageFillBrush property.
Flags: Can be used in style rules
Default Value:
The DependencyProperty for the MessageStrokeBrush property.
Flags: Can be used in style rules
Default Value:
The for the AppName property.
Initializes a new instance of the class.
Static constructor to define metadata for the control (and link it to the style in Generic.xaml).
This event occurs when an alert message needs to be displayed.
If this event is not handled, the control may display the alert message using the standard message dialog.
If you do not want to display the alert messages, handle this event and set
property to .
This event occurs when an error message needs to be displayed.
If this event is not handled, the control may display the error message using the standard message dialog.
If you do not want to display the error messages, handle this event and set
property to .
Gets or sets the name of the parent assembly for this element.
A string containing the name of the parent assembly or the name of the assembly containing SVG file
referenced on this control in XAML, if the source type is .
Gets or sets the application title, which is used to display the alert and error messages not handled
by the user.
A string containg the application title. This cannot be or empty.
The default is SharpVectors.
Gets or sets the path to the SVG file to load into this .
A specifying the path to the SVG source file. The file can be located on a computer,
network or assembly resources. Settings this to will close any rendered SVG diagram.
Gets or sets the path to the SVG file to load into this .
A specifying the path to the SVG source file. The file can be located on a computer,
network or assembly resources. Settings this to will close any rendered SVG diagram.
This is the same as the property, and added for consistency.
Gets or sets the SVG contents to load into this .
A specifying the embedded SVG contents.
Settings this to will close any opened diagram.
Gets or sets the to the SVG source to load into this .
A specifying the stream to the SVG source.
Settings this to will close any opened diagram.
The stream source has precedence over the Uri property.
If set (not ), the stream source will be rendered instead of the Uri source.
WPF controls do not implement the interface and cannot properly dispose any
stream set to it. To avoid this issue and also any problem of the user accidentally closing the stream,
this control makes a copy of the stream to memory stream.
Gets the drawing canvas, which is the child of this .
An instance of the specifying the child
of this , which handles the rendering.
Gets the drawing from the SVG file conversion.
An instance of the specifying the converted drawings
which is rendered in the canvas and displayed in the this viewbox.
Gets or sets a value indicating whether to automatically resize this
based on the size of the loaded drawing.
This is if this is automatically resized based on the size of
the loaded drawing; otherwise, it is . The default is , and
the user-defined size or the parent assigned layout size is used.
Gets or sets a value indicating whether the path geometry is
optimized using the .
This is if the path geometry is optimized using the ;
otherwise, it is . The default is .
Gets or sets a value indicating whether the texts are rendered as path geometry.
This is if texts are rendered as path geometries; otherwise, this is
. The default is .
The text features of the SVG format are complex and difficult to fully support without directly reverting
the text paths (or glyph geometry). This options will, therefore, be removed in future versions of the library,
as it is not always honored when set to .
Gets or sets a value indicating whether the SharpVectors.Runtime.dll
classes are used in the generated output.
This is if the SharpVectors.Runtime.dll classes and types are used in the
generated output; otherwise, it is . The default is .
The use of the SharpVectors.Runtime.dll prevents the hard-coded font path generated by the
class, support for embedded images etc.
Gets or sets the main culture information used for rendering texts.
An instance of the specifying the main
culture information for texts. The default is the English culture.
This is the culture information passed to the
class instance for the text rendering.
The library does not currently provide any means of splitting texts into its multi-language parts.
Gets or sets a value to indicate turning off viewbox at the root of the drawing.
For image outputs, this will force the original size to be saved.
The default value is .
There are reported cases where are diagrams displayed in Inkscape program, but will not show when converted.
These are diagrams on the drawing canvas of Inkspace but outside the svg viewbox.
When converted the drawings are also converted but not displayed due to clipping. Setting this property
to will clear the clipping region on conversion.
Gets or sets a value to indicate preserving the original viewbox size when saving images.
For image outputs, this will force the original size to be saved.
The default value is . However, the ImageSvgConverter converted
sets this to by default.
Setting this to will cause the rendering process to draw a transparent
box around the output, if a viewbox is defined. This will ensure that the original image size is saved.
Gets or sets a value to indicate applying a translate transform to the viewbox to ensure
it is visible when rendered.
This determines whether a transformation is applied to the rendered drawing. For drawings where the top-left
position of the viewbox is off the screen, due to negative values, this will ensure the drawing is visible.
The default value is . Set this value to if
you wish to apply your own transformations to the drawings.
Gets or sets the font family of the desired font for the message text.
A specifying the font for the message text.
The default value is .
Gets or sets the size of the desired font for the message text.
A value specifying the font size of the message text. The default is 48 pixels.
The font size must be a positive number.
Gets or sets the opacity factor applied to the entire message text when it is
rendered in the user interface (UI).
The opacity factor. Default opacity is 1.0. Expected values are between 0.0 and 1.0.
Gets or sets the content of the message.
A specifying the content of the message text.
The default is "Loading...". This value can be overriden in the method.
Gets or sets a brush that describes the background of a message text.
A specifying the brush that is used to fill the background of the
message text. The default is . If set to ,
the background will not be drawn.
Gets or sets the brush with which to fill the message text.
This is optional, and can be . If the brush is , no fill is drawn.
A specifying the fill of the message text. The default is .
If both the fill and stroke brushes of the message text are , no text is drawn.
Gets or sets the brush of the with which to stroke the message text.
This is optional, and can be . If the brush is , no stroke is drawn.
A specifying the brush of the for stroking the message text.
The default is .
If both the fill and stroke brushes of the message text are , no text is drawn.
Gets or sets a value specifying the interactive mode, which controls the level of information attached
to the generated drawing.
An enumeration of the type specifying the interactive mode.
The default is ; no interactivity and may change in the future.
This sets the source SVG for a by using the supplied Uniform Resource Identifier (URI)
and optionally processing the result asynchronously.
A reference to the SVG source file.
A value indicating whether to process the result asynchronously. The default value is ,
the SVG conversion is processed synchronously.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
This sets the source SVG for a by accessing text contents
and optionally processing the result asynchronously.
The stream source that sets the SVG source value.
A value specifying whether to use a copy of the stream. The default is ,
the SVG source stream is copied, rendered and stored.
A value indicating whether to process the result asynchronously. The default value is ,
the SVG conversion is processed synchronously.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
This sets the source SVG for a by accessing a stream
and optionally processing the result asynchronously.
The stream source that sets the SVG source value.
A value specifying whether to use a copy of the stream. The default is ,
the SVG source stream is copied, rendered and stored.
A value indicating whether to process the result asynchronously. The default value is ,
the SVG conversion is processed synchronously.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
The control will by default create a copy of the source stream to prevent any effect of disposing.
If the source stream is stored, then use the to prevent the control
from creating its own copy.
This sets the source SVG for a by using the supplied Uniform Resource Identifier (URI)
and processing the result asynchronously.
A reference to the SVG source file.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
This sets the source SVG for a by accessing text contents
and processing the result asynchronously.
The stream source that sets the SVG source value.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
This sets the source SVG for a by accessing a stream
and processing the result asynchronously.
The stream source that sets the SVG source value.
A value specifying whether to use a copy of the stream. The default is ,
the SVG source stream is copied, rendered and stored.
A value that indicates whether the operation was successful. This is
if successful, otherwise, it is .
The control will by default create a copy of the source stream to prevent any effect of disposing.
If the source stream is stored, then use the to prevent the control
from creating its own copy.
This clears the of any drawn diagram and optionally displays a
message.
A value indicating whether to display a message after clearing the SVG rendered diagram.
The value is , not message is displayed.
This specifies the message to be displayed after clearing the diagram. Setting this parameter
to a non-empty text will override any message set in the .
The default value is .
Gets the rendering settings or options to be used in rendering the SVG in this control.
An instance of specifying the rendering options or settings.
Raises the Initialized event. This method is invoked whenever IsInitialized is set to true.
Event data for the event.
This handles changes in the rendering settings of this control.
This handles changes in the automatic resizing property of this control.
Performs the conversion of a valid SVG source to the .
This returns if successful; otherwise, it returns .
Performs the conversion of a valid SVG source file to the .
A defining the path to the SVG source.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
This returns if successful; otherwise, it returns .
Performs the conversion of a valid SVG source stream to the .
A stream providing access to the SVG source data.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
This returns if successful; otherwise, it returns .
Performs the conversion of a valid SVG source stream to the .
A stream providing access to the SVG source data.
This specifies the settings used by the rendering or drawing engine.
If this is , the default settings is used.
This returns if successful; otherwise, it returns .
Gets or sets the base URI of the current application context.
The base URI of the application context.
Copies a file or a directory and its contents to a new location.
Gets or sets a value indicating whether the directory copying is
recursive, that is includes the sub-directories.
This property is if the sub-directories are
included in the directory copy; otherwise, it is .
The default is .
Gets or sets a value indicating whether an existing file is overwritten.
This property is if existing file is overwritten;
otherwise, it is . The default is .
Gets or sets a value indicating whether the security settings of the
copied file is retained.
This property is if the security settings of the
file is also copied; otherwise, it is . The
default is .
Gets or sets a value indicating whether the copy operation includes
hidden directories and files.
This property is if hidden directories and files
are included in the copy operation; otherwise, it is
. The default is .
The path of the file or directory to copy.
The path to the new location.
This is a customized XAML writer, which provides Extensible Application
Markup Language (XAML) serialization of provided runtime objects into XAML.
This is designed to be used by the SVG to XAML converters, and may not be useful in general applications.
The writer is created with help from the following posts (Archived Forums):
XAML Serialization Replacement
Saving and Loading of Interface in XAML Format
XamlWriter, MarkupObject How to?
Initializes a new instance of the class.
Initializes a new instance of the class with the default settings.
Initializes a new instance of the class with the specified settings.
An instance of specifying the rendering options.
Gets or sets a value indicating whether to include a null markup extension in the output XAML.
This is if the null markup extension is included in the output XAML; otherwise,
it is . The default is .
Gets or sets the number of character string to use when indenting.
A non-negative value (from 0 to 8) specifying the number of character string.
The default is 2 or two spaces.
Returns a Extensible Application Markup Language (XAML) string that serializes the provided object.
The element to be serialized. Typically, this is the root element of a page or application.
Extensible Application Markup Language (XAML) string that can be written to a stream or file.
The logical tree of all elements that fall under the provided obj element will be serialized.
Returns a Extensible Application Markup Language (XAML) string that serializes the provided object.
The element to be serialized. Typically, this is the root element of a page or application.
Extensible Application Markup Language (XAML) string that can be written to a stream or file.
The logical tree of all elements that fall under the provided obj element will be serialized.
Saves Extensible Application Markup Language (XAML) information into a provided
stream to serialize the provided object.
The element to be serialized. Typically, this is the root element of a page or application.
Destination stream for the serialized XAML information.
Saves Extensible Application Markup Language (XAML) information as the source for a provided text writer object.
The output of the text writer can then be used to serialize the provided object.
The element to be serialized. Typically, this is the root element of a page or application.
TextWriter instance to use to write the serialized XAML information.
Saves Extensible Application Markup Language (XAML) information as the source for a provided XML writer object.
The output of the XML writer can then be used to serialize the provided object.
The element to be serialized. Typically, this is the root element of a page or application.
Writer to use to write the serialized XAML information.
Xml namespace caching class.
A class encapsulating XML name prefix to namespace map.