ClassSettingsNode
Base class that support Clone() Clone and INotifyPropertyChanged.
Definition
Namespace:Telerik.Data.Core
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public abstract class SettingsNode : Cloneable, INotifyPropertyChanged, ISupportInitialize
Inheritance: objectCloneableSettingsNode
Derived Classes:
Implements:
Inherited Members
Constructors
SettingsNode()
Declaration
protected SettingsNode()
Properties
Parent
Gets or sets the SettingsNode this SettingsNode is used in.
Methods
AddSettingsChild(SettingsNode)
Set this SettingsNode as parent of the child and becomes a target for the child's change notifications.
Declaration
protected void AddSettingsChild(SettingsNode child)
Parameters
child
The nested SettingsNode.
BeginEdit()
Enters the SettingsNode in a new editing scope. Use when applying multiple changes. If child SettingsNode are changed, notifications will be accumulated in this SettingsNode.
Declaration
public IDisposable BeginEdit()
Returns
An edit scope token that you must Dispose() when you are done with the editing.
BeginInit()
Declaration
public void BeginInit()
Implements
EndInit()
Declaration
public void EndInit()
Implements
NotifyChange(SettingsChangedEventArgs)
Will recursively notify all SettingsNode for a settings change.
Declaration
protected void NotifyChange(SettingsChangedEventArgs args)
Parameters
args
SettingsChangedEventArgs that contain information about the change.
OnPropertyChanged(string)
Raises this object's PropertyChanged event.
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
propertyName
The property that has a new value.
OnSettingsChanged(SettingsChangedEventArgs)
Invoked when a SettingsChangedEventArgs reaches the SettingsNode.
Declaration
protected virtual void OnSettingsChanged(SettingsChangedEventArgs args)
Parameters
args
The SettingsChangedEventArgs that contains the event data.
RemoveSettingsChild(SettingsNode)
Unsets the parent initiated with AddSettingsChild(SettingsNode).
This SettingsNode will no longer receive change notifications from the child.
Declaration
protected void RemoveSettingsChild(SettingsNode child)
Parameters
child
The nested SettingsNode.
Events
PropertyChanged
Invoked when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements
SettingsChanged
Invoked when this or one of the children is changed.
Declaration
public event EventHandler<SettingsChangedEventArgs> SettingsChanged
Event Value