Class StyleInfoPropertyReadXmlEventArgs
Provides data for the ReadXml event.
Inheritance
Namespace: Syncfusion.Windows.Styles
Assembly: Syncfusion.GridCommon.WPF.dll
Syntax
public sealed class StyleInfoPropertyReadXmlEventArgs : SyncfusionHandledEventArgs
Remarks
The StyleInfoPropertyReadXmlEventArgs is used to deserialize a property of a StyleInfoStore object. The ReadXml event occurs whenever a property is deserialized from an XML stream during an System.Xml.Serialization.XmlSerializer.Deserialize(System.IO.Stream) operation of the System.Xml.Serialization.XmlSerializer class.
If you handle this event, you set Handled to True. Call SetValue(StyleInfoProperty, Object) of the Store to save the value for this property into the style object. Handling this event allows you to customize the way the object is deserialized or skip serialization.
This event allows you to implement a different serialization mechanism if many style objects reference and share the same object, (e.g. if you assign a DataSet to several objects DataSource property). With such a scenario, you could write out an identifier and when the property is deserialized from an XML stream you could reconstruct a reference to a datasource object based on the identifier.
Constructors
StyleInfoPropertyReadXmlEventArgs(XmlReader, StyleInfoStore, StyleInfoProperty)
Initializes a new StyleInfoPropertyReadXmlEventArgs object.
Declaration
public StyleInfoPropertyReadXmlEventArgs(XmlReader reader, StyleInfoStore store, StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The System.Xml.XmlReader for the XML stream. |
StyleInfoStore | store | The style object that is deserialized. |
StyleInfoProperty | sip | The property that is being deserialized. |
Properties
Reader
Returns the System.Xml.XmlReader for the XML stream.
Declaration
public XmlReader Reader { get; }
Property Value
Type |
---|
System.Xml.XmlReader |
Sip
Returns the property that is being deserialized. Call SetValue(StyleInfoProperty, Object) of the Store to save the value for this property into the style object.
Declaration
[TraceProperty(true)]
public StyleInfoProperty Sip { get; }
Property Value
Type |
---|
StyleInfoProperty |
Store
Returns the style object that is deserialized.
Declaration
public StyleInfoStore Store { get; }
Property Value
Type |
---|
StyleInfoStore |