Back to Devexpress

DXSerializer Members

wpf-devexpress-dot-xpf-dot-core-dot-serialization-dot-dxserializer-dot-underscore-members.md

latest22.0 KB
Original Source

DXSerializer Members

Allows the DevExpress WPF Controls to save/restore their layout.

Fields

NameDescription
AllowPropertyEvent staticIdentifies the AllowProperty routed event.
BeforeLoadLayoutEvent staticIdentifies the BeforeLoadLayout routed event.
CreateCollectionItemEvent staticAllows you to create an instance of an item and restore its settings when a collection is deserialized.
CustomGetSerializableChildrenEvent staticIdentifies the CustomGetSerializableChildren routed event.
CustomGetSerializablePropertiesEvent staticIdentifies the CustomGetSerializableProperties routed event.
DeserializePropertyEvent staticIdentifies the DeserializeProperty routed event.
EnabledProperty staticIdentifies the Enabled attached property.
EnableSubtreeProperty staticIdentifies the EnableSubtree attached property.
LayoutUpgradeEvent staticIdentifies the LayoutUpgrade routed event.
LayoutVersionProperty staticIdentifies the LayoutVersion attached property.
SerializationIDProperty staticIdentifies the SerializationID attached property.
StoreLayoutModeProperty staticIdentifies the StoreLayoutMode attached property.

Methods

NameDescription
AddAllowPropertyHandler(DependencyObject, AllowPropertyEventHandler) staticAdds a handler for the AllowProperty attached event.
AddBeforeLoadLayoutHandler(DependencyObject, BeforeLoadLayoutEventHandler) staticAdds a handler for the BeforeLoadLayout attached event.
AddCreateCollectionItemEventHandler(DependencyObject, XtraCreateCollectionItemEventHandler) staticAdds a handler for the CreateCollectionItemEvent attached event.
AddCustomGetSerializableChildrenHandler(DependencyObject, CustomGetSerializableChildrenEventHandler) staticAdds a handler for the CustomGetSerializableChildren attached event.
AddCustomGetSerializablePropertiesHandler(DependencyObject, CustomGetSerializablePropertiesEventHandler) staticAdds a handler for the CustomGetSerializableProperties attached event.
AddDeserializePropertyHandler(DependencyObject, XtraPropertyInfoEventHandler) staticAdds a handler for the DeserializeProperty attached event.
AddLayoutUpgradeHandler(DependencyObject, LayoutUpgradeEventHandler) staticAdds a handler for the LayoutUpgrade attached event.
Deserialize(DependencyObject, Stream, String, DXOptionsLayout, SerializationType) staticRestores (deserializes) the layouts of the specified container (or control) and all its child elements from a Stream.
Deserialize(DependencyObject, String, String, DXOptionsLayout, SerializationType) staticRestores (deserializes) the layouts of the specified container (or control) and all its child elements from a file.
Deserialize(DependencyObject[], Stream, String, DXOptionsLayout, SerializationType) staticRestores (deserializes) the layouts of specified containers (or controls) and all their child elements from a Stream.
Deserialize(DependencyObject[], String, String, DXOptionsLayout, SerializationType) staticRestores (deserializes) the layouts of specified containers (or controls) and all their child elements from a file.
DeserializeSingleObject(DependencyObject, Stream, String, SerializationType) staticRestores (deserializes) the layouts of the specified container (or control) and all its child elements from a Stream.
DeserializeSingleObject(DependencyObject, String, String, SerializationType) staticRestores (deserializes) the layouts of the specified container (or control) and all its child elements from a file.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
GetEnabled(DependencyObject) staticGets the value of the DXSerializer.Enabled attached property for the specified DXSerializer.
GetEnableSubtree(DependencyObject) staticGets the value of the DXSerializer.EnableSubtree attached property for the specified DXSerializer.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetLayoutVersion(DependencyObject) staticGets the value of the DXSerializer.LayoutVersion attached property for the specified DXSerializer.
GetSerializationID(DependencyObject) staticGets the value of the DXSerializer.SerializationID attached property for the specified DXSerializer.
GetStoreLayoutMode(DependencyObject) staticGets the value of the DXSerializer.StoreLayoutMode attached property for the specified DXSerializer.
GetType()Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
RemoveAllowPropertyHandler(DependencyObject, AllowPropertyEventHandler) staticRemoves a handler for the AllowProperty attached event.
RemoveBeforeLoadLayoutHandler(DependencyObject, BeforeLoadLayoutEventHandler) staticRemoves a handler for the BeforeLoadLayout attached event.
RemoveCreateCollectionItemEventHandler(DependencyObject, XtraCreateCollectionItemEventHandler) staticRemoves a handler for the CreateCollectionItemEvent attached event.
RemoveCustomGetSerializableChildrenHandler(DependencyObject, CustomGetSerializableChildrenEventHandler) staticRemoves a handler for the CustomGetSerializableChildrenEvent attached event.
RemoveCustomGetSerializablePropertiesHandler(DependencyObject, CustomGetSerializablePropertiesEventHandler) staticRemoves a handler for the CustomGetSerializableProperties attached event.
RemoveDeserializePropertyHandler(DependencyObject, XtraPropertyInfoEventHandler) staticRemoves a handler for the DeserializeProperty attached event.
RemoveLayoutUpgradeHandler(DependencyObject, LayoutUpgradeEventHandler) staticRemoves a handler for the LayoutUpgrade attached event.
Serialize(DependencyObject, Stream, String, DXOptionsLayout, SerializationType) staticSaves (serializes) the layouts of the specified container (or control) and all its child elements to a Stream. The method serializes the layouts of visual controls that exist in the application’s visual tree.
Serialize(DependencyObject, String, String, DXOptionsLayout, SerializationType) staticSaves (serializes) the layouts of the specified container (or control) and all its child elements to a file. The method serializes the layouts of visual controls that exist in the application’s visual tree.
Serialize(DependencyObject[], Stream, String, DXOptionsLayout, SerializationType) staticSaves (serializes) the layouts of specified containers (or controls) and all their child elements to a Stream. The method serializes the layouts of visual controls that exist in the application’s visual tree.
Serialize(DependencyObject[], String, String, DXOptionsLayout, SerializationType) staticSaves (serializes) the layouts of specified containers (or controls) and all their child elements to a file. The method serializes the layouts of visual controls that exist in the application’s visual tree.
SerializeSingleObject(DependencyObject, Stream, String, SerializationType) staticSaves (serializes) the layouts of the specified container (or control) and all its child elements to a Stream. The method serializes the layouts of visual controls that exist in the application’s visual tree.
SerializeSingleObject(DependencyObject, String, String, SerializationType) staticSaves (serializes) the layouts of the specified container (or control) and all its child elements to a file. The method serializes the layouts of visual controls that exist in the application’s visual tree.
SetEnabled(DependencyObject, Boolean) staticSets the value of the DXSerializer.Enabled attached property to the specified DXSerializer.
SetEnableSubtree(DependencyObject, Boolean) staticSets the value of the DXSerializer.EnableSubtree attached property to the specified DXSerializer.
SetLayoutVersion(DependencyObject, String) staticSets the value of the DXSerializer.LayoutVersion attached property to the specified DXSerializer.
SetSerializationID(DependencyObject, String) staticSets the value of the DXSerializer.SerializationID attached property to the specified DXSerializer.
SetStoreLayoutMode(DependencyObject, StoreLayoutMode) staticSets the value of the DXSerializer.StoreLayoutMode attached property to the specified DXSerializer.
ToString()Returns a string that represents the current object. Inherited from Object.

Attached Events

NameDescription
AllowProperty staticAllows you to prevent a property from deserialization.
BeforeLoadLayout staticOccurs before the DXSerializer loads a layout from an XML file/Stream.
CustomGetSerializableChildren staticAllows you to save a layout of a control that does not exist in the application’s visual tree.
CustomGetSerializableProperties staticAllows you to serialize standard/custom controls or custom properties.
DeserializeProperty staticOccurs when the DXSerializer is about to deserialize a property.
LayoutUpgrade staticOccurs when the application’s current layout version is higher than in the serialized storage (XML file/Stream).

Attached Properties

NameDescription
Enabled staticGets or sets whether the DXSerializer should serialize/deserialize properties of the control to which this property is specified. This is an attached property.
EnableSubtree staticGets or sets whether the DXSerializer should serialize/deserialize properties of the specified control’s children.
LayoutVersion staticGets or sets a version of the application’s layout. This is an attached property.
SerializationID staticGets or sets an element’s unique identifier that the DXSerializer uses to identify the saved/restored elements. This is an attached property.
StoreLayoutMode staticGets or sets properties that should be serialized. This is an attached property.

See Also

DXSerializer Class

DevExpress.Xpf.Core.Serialization Namespace