Provides the XML serialization functionality for RadLayoutControl.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class LayoutControlXmlSerializer : ComponentXmlSerializer
Inheritance: objectComponentXmlSerializerLayoutControlXmlSerializer
Inherited Members
Constructors
Creates a serializer that can match serialized layout items and associated controls to existing objects by name.
public LayoutControlXmlSerializer(RadLayoutControl layoutControl, ComponentXmlSerializationInfo componentSerializationInfo)
The layout control whose existing items and controls can be reused while loading.
componentSerializationInfoComponentXmlSerializationInfoThe property serialization settings passed to the base serializer.
Methods
Returns null for an empty name; otherwise reuses matching Items or ItemGroups entries and falls back to the base matcher when no name match exists.
protected override object MatchExistingItem(XmlReader reader, IList toRead, object parent, PropertyDescriptor parentProperty, string propertyToMatch, string uniquePropertyValue, IList existingInstancesToMatch, ref int foundAtIndex)
The XML reader for the serialized item.
toReadIListThe collection being populated from the XML.
parentobjectThe object that owns the collection.
parentPropertyPropertyDescriptorThe property descriptor for the collection being populated.
propertyToMatchstringThe property name used by the base serializer when matching existing objects.
uniquePropertyValuestringThe serialized value used to find a named layout item.
existingInstancesToMatchIListThe existing objects available to the base matcher.
foundAtIndexintReceives the base matcher's index; remains -1 for items matched by this serializer's name lookup.
Returns:Overrides:
Reads layout item collections by matching existing items by name, creating missing items, and removing unmatched items from the collection. Unmatched existing items are scheduled for disposal; other collection types are left to the base deserializer.
protected override bool ProcessListOverride(XmlReader reader, object listOwner, PropertyDescriptor ownerProperty, IList list)
The XML reader positioned at the collection data.
listOwnerobjectThe object that owns the collection.
ownerPropertyPropertyDescriptorThe descriptor for the collection property.
listIListThe existing collection being populated.
Returns:true when this method handled a layout-item collection; otherwise, false.
Overrides:
Resolves a serialized associated-control name to an existing control before applying other property values normally.
protected override void SetPropertyValue(PropertyDescriptor property, object propertyOwner, object value)
The property being assigned.
propertyOwnerobjectThe object that owns the property.
valueobjectThe deserialized property value.
Overrides: