DockXmlSerializer
Reads and writes RadDock layouts while preserving window identities and their saved docking locations.
Definition
Namespace:Telerik.WinControls.UI.Docking.Serialization
Assembly:Telerik.WinControls.RadDock.dll
Syntax:
public class DockXmlSerializer : DockXmlSerializerBase
Inheritance: objectComponentXmlSerializerDockXmlSerializerBaseDockXmlSerializer
Inherited Members
Constructors
Creates a serializer and optionally prepares floating-window and auto-hide snapshots before writing.
public DockXmlSerializer(RadDock dock, ComponentXmlSerializationInfo componentSerializationInfo, bool prepareFloatingAndAutoHideWindows)
The dock whose layout is serialized or restored.
componentSerializationInfoComponentXmlSerializationInfoThe property and type metadata used by the serializer.
prepareFloatingAndAutoHideWindowsbooltrue to synchronize floating-window and auto-hide state before writing.
Creates a serializer that prepares floating-window and auto-hide snapshots before writing.
public DockXmlSerializer(RadDock dock, ComponentXmlSerializationInfo componentSerializationInfo)
The dock whose layout is serialized or restored.
componentSerializationInfoComponentXmlSerializationInfoThe property and type metadata used by the serializer.
Methods
Hides unsited tool windows and detaches unsited dock windows from the target control before base disposal.
protected override void DisposeObject(IDisposable toBeDisposed)
The object the deserializer is removing.
Overrides:
Adds floating, auto-hidden, and hidden windows to their recorded redock strip, or to the first docked strip when no state is available.
protected override IEnumerable GetCollectionElementOverride(IEnumerable list, object owner, PropertyDescriptor property)
The controls currently in the collection.
ownerobjectThe object that owns the collection.
propertyPropertyDescriptorMetadata for the collection property.
Returns:The controls to serialize, including eligible dock windows not currently in the strip.
Overrides:
Reads the splitter width from the dock's split-container element so XML reflects its active value.
protected override object GetPropertyValue(PropertyDescriptor property, object propertyOwner)
The property being serialized.
propertyOwnerobjectThe object whose property value is requested.
Returns:The active split-container width for SplitterWidth, or the base serializer's value.
Overrides:
Clears cached floating-window snapshots and auto-hide groups before reading a layout.
protected override void InitializeRead()
Overrides:
Prepares configured floating and auto-hide snapshots and identifies the first docked strip for serialization.
protected override void InitializeWrite()
Overrides:
Merges serialized controls by name, temporarily disabling child-index updates while reading a tool strip.
protected override bool ProcessListOverride(XmlReader reader, object listOwner, PropertyDescriptor ownerProperty, IList list)
The reader positioned at the collection data.
listOwnerobjectThe object that owns the collection.
ownerPropertyPropertyDescriptorMetadata for the collection property being read.
listIListThe existing collection to update.
Returns:The base serializer's result for non-control collections; otherwise, whether this override handled the collection.
Overrides: