Class XPThemesThemeChangedWeakContainer
Class for automatic subscription management of ThemeChanged event.
Inheritance
System.Object
System.WeakReference
XPThemesThemeChangedWeakContainer
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
System.WeakReference.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.WeakReference.IsAlive
System.WeakReference.TrackResurrection
Namespace: Syncfusion.Windows.Forms
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class XPThemesThemeChangedWeakContainer : WeakReference, ISerializable
Constructors
XPThemesThemeChangedWeakContainer(ISupportThemeChanged)
Initializes a new instance of the XPThemesThemeChangedWeakContainer class.
Declaration
public XPThemesThemeChangedWeakContainer(ISupportThemeChanged target)
Parameters
Type | Name | Description |
---|---|---|
ISupportThemeChanged | target | The target. |
Properties
Target
Gets or sets the object (the target) referenced by the current System.WeakReference object.
Declaration
public override object Target { get; set; }
Property Value
Type |
---|
System.Object |
Overrides
System.WeakReference.Target
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The reference to the target object is invalid. This exception can be thrown while setting this property if the value is a null reference or if the object has been finalized during the set operation. |
Methods
ThemeChanged(Object, EventArgs)
Handles theme change.
Declaration
public void ThemeChanged(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
System.EventArgs | e | The System.EventArgs instance containing the ThemeChanged event data. |
Implements
System.Runtime.Serialization.ISerializable