Class
SettingsNode

Base class that support Clone() Clone and INotifyPropertyChanged.

Definition

Namespace:Telerik.Data.Core

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public abstract class SettingsNode : Cloneable, INotifyPropertyChanged, ISupportInitialize

Inheritance: objectCloneableSettingsNode

Derived Classes: DescriptionBaseGroupFilter

Implements: INotifyPropertyChangedISupportInitialize

Inherited Members Cloneable.Clone()Cloneable.CreateInstanceCore()Cloneable.CloneCore(Cloneable)

Constructors

SettingsNode()

Declaration

cs-api-definition
protected SettingsNode()

Properties

Parent

Gets or sets the SettingsNode this SettingsNode is used in.

Declaration

cs-api-definition
public SettingsNode Parent { get; }

Property Value

SettingsNode

Methods

AddSettingsChild(SettingsNode)

Set this SettingsNode as parent of the child and becomes a target for the child's change notifications.

Declaration

cs-api-definition
protected void AddSettingsChild(SettingsNode child)

Parameters

child

SettingsNode

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.

using(settingsNode.BeginEdit()) { // Apply multiple changes here. }

Declaration

cs-api-definition
public IDisposable BeginEdit()

Returns

IDisposable

An edit scope token that you must Dispose() when you are done with the editing.

BeginInit()

Declaration

cs-api-definition
public void BeginInit()

Implements ISupportInitialize.BeginInit()

EndInit()

Declaration

cs-api-definition
public void EndInit()

Implements ISupportInitialize.EndInit()

NotifyChange(SettingsChangedEventArgs)

Will recursively notify all SettingsNode for a settings change.

Declaration

cs-api-definition
protected void NotifyChange(SettingsChangedEventArgs args)

Parameters

args

SettingsChangedEventArgs

SettingsChangedEventArgs that contain information about the change.

OnPropertyChanged(string)

Raises this object's PropertyChanged event.

Declaration

cs-api-definition
protected void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

The property that has a new value.

OnSettingsChanged(SettingsChangedEventArgs)

Invoked when a SettingsChangedEventArgs reaches the SettingsNode.

Declaration

cs-api-definition
protected virtual void OnSettingsChanged(SettingsChangedEventArgs args)

Parameters

args

SettingsChangedEventArgs

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

cs-api-definition
protected void RemoveSettingsChild(SettingsNode child)

Parameters

child

SettingsNode

The nested SettingsNode.

Events

PropertyChanged

Invoked when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged

SettingsChanged

Invoked when this or one of the children is changed.

Declaration

cs-api-definition
public event EventHandler<SettingsChangedEventArgs> SettingsChanged

Event Value

EventHandler<SettingsChangedEventArgs>