Modifica

Condividi tramite


XamlObjectWriterSettings Class

Definition

Provides specific XAML writer settings for XamlObjectWriter.

public ref class XamlObjectWriterSettings : System::Xaml::XamlWriterSettings
public class XamlObjectWriterSettings : System.Xaml.XamlWriterSettings
type XamlObjectWriterSettings = class
    inherit XamlWriterSettings
Public Class XamlObjectWriterSettings
Inherits XamlWriterSettings
Inheritance
XamlObjectWriterSettings

Remarks

A XamlObjectWriter can function within specified XamlObjectWriterSettings. Where settings are not specified, an instance of XamlObjectWriterSettings exists that has default values for a constructed XamlObjectWriter, and this instance can be used in merges of settings for a derived class.

Constructors

XamlObjectWriterSettings()

Initializes a new instance of the XamlObjectWriterSettings class.

XamlObjectWriterSettings(XamlObjectWriterSettings)

Initializes a new instance of the XamlObjectWriterSettings class that is based on the copy of an existing instance.

Properties

AccessLevel

Gets or sets XamlAccessLevel permissions that the XAML writer observes.

AfterBeginInitHandler

Gets or sets a reference to a callback that is invoked by the XAML writer at the BeginInit() phase of the object lifetime for each created object.

AfterEndInitHandler

Gets or sets a reference to a callback that is invoked by the XAML writer at the EndInit() phase of the object lifetime for each created object.

AfterPropertiesHandler

Gets or sets a reference to a callback that is invoked by the XAML writer at the post-member-write phase of the object lifetime for each created object.

BeforePropertiesHandler

Gets or sets a reference to a callback that is invoked by the XAML writer at the pre-member-write phase of the object lifetime for each created object.

ExternalNameScope

Gets or sets the XAML namescope to use for registering names from the XAML writer if RegisterNamesOnExternalNamescope is true.

IgnoreCanConvert

Gets or sets a value that specifies whether the XAML writer should ignore (not call) CanConvertFrom(ITypeDescriptorContext, Type) implementations on a TypeConverter in type-converter situations.

PreferUnconvertedDictionaryKeys

Gets or sets a value that determines whether to disable a default XamlObjectWriter feature that runs type conversion on the K component of a Dictionary<TKey,TValue> before writing the object graph representation.

RegisterNamesOnExternalNamescope

Gets or sets a value that determines whether name registration should occur against the specified ExternalNameScope.

RootObjectInstance

Gets or sets a preexisting root object for XamlObjectWriter operations.

SkipDuplicatePropertyCheck

Gets or sets a value that determines whether the XAML writer omits to check for the code path that checks for duplicate properties.

SkipProvideValueOnRoot

Gets or sets a value that indicates whether the XamlObjectWriter should omit to call ProvideValue on a markup extension, which is relevant when the markup extension represents the root of an object graph.

SourceBamlUri

Used in the BeginInitHandler in place of the actual BaseUri.

XamlSetValueHandler

Gets or sets the handler to use when the object writer calls into a CLR-implemented SetValue for dependency properties.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also