ClassSettingsNode
Base class that support Clone() Clone and INotifyPropertyChanged.
Definition
Namespace:Telerik.Pivot.Core
Assembly:Telerik.Pivot.Core.dll
Syntax:
[DataContract]
public abstract class SettingsNode : Cloneable, INotifyPropertyChanged, ISupportInitialize, IServiceProvider, IEditable
Inheritance: objectCloneableSettingsNode
Derived Classes:
Implements:
Inherited Members
Constructors
SettingsNode()
Declaration
protected SettingsNode()
Properties
Parent
Gets 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.
Implements
BeginInit()
Declaration
public void BeginInit()
Implements
EndInit()
Declaration
public void EndInit()
Implements
GetServiceOverride(Type)
Provides services available by this SettingsNode. Other services may be available in its Parent SettingsNodes. The default implementation returns this SettingsNode if the desired service type is assignable from the type of this. The GetService(Type) implementation of IServiceProvider would query the service on the local node and if not available would query up the Parent nodes.
NotifyServicesChanged()
Raises the ServicesChanged event.
Declaration
protected void NotifyServicesChanged()
NotifySettingsChanged(SettingsChangedEventArgs)
Will recursively notify all SettingsNode for a settings change.
Declaration
protected void NotifySettingsChanged(SettingsChangedEventArgs args)
Parameters
args
SettingsChangedEventArgs that contain information about the change.
OnEnteredEditScope()
Override to provide custom behavior for derived classes when editing begins. SettingsNode is already in edit mode and changes within the method body will be accumulated and released upon exit.
Declaration
protected virtual void OnEnteredEditScope()
OnExitingEditScope()
Override to provide custom behavior for derived classes when finishing editing. SettingsNode is still in edit mode and changes within the method body will be accumulated and released upon exit.
Declaration
protected virtual void OnExitingEditScope()
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
ServicesChanged
Invoked when new services are available or existing services are removed.
Declaration
public event EventHandler<EventArgs> ServicesChanged
Event Value
SettingsChanged
Invoked when this or one of the children is changed.
Declaration
public event EventHandler<SettingsChangedEventArgs> SettingsChanged
Event Value