NotifyPropertyBase
Definition
Namespace:Telerik.WinControls.Data
Assembly:Telerik.WinControls.dll
Syntax:
public class NotifyPropertyBase : INotifyPropertyChangingEx, INotifyPropertyChanged
Inheritance: objectNotifyPropertyBase
Derived Classes:
Implements:
Constructors
public NotifyPropertyBase()
Properties
[Browsable(false)]
public virtual bool IsSuspended { get; }
Methods
Raises the PropertyChanged event
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
A PropertyChangedEventArgs instance containing event data.
Raises the PropertyChanged event
protected void OnPropertyChanged(string propertyName)
The name of the property
Raises the PropertyChanging event. Note: This method is called even when the notifications are suspended.
protected virtual void OnPropertyChanging(PropertyChangingEventArgsEx e)
A PropertyChangingEventArgsEx instance containing event data.
This method is called right befor the PropertyChanged event is fired.
protected virtual void ProcessPropertyChanged(PropertyChangedEventArgs e)
This method is called right before the PropertyChanging event is fired. Note: If IsSuspended is true, this method is not called.
protected virtual void ProcessPropertyChanging(PropertyChangingEventArgsEx e)
General method for setting the value of the field related to the property that is modified. This method confirms that the old and new values are different, then fires the PropertyChanging event, then sets the given value to the supplied field, and fires the PropertyChanged event. Note: If the PropertyChanging event is canceled, the last two actions are not performed.
protected virtual bool SetProperty<T>(string propertyName, ref T propertyField, T value)
The name of the property, that will appear as propertyName in the PropertyChanging and PropertyChanged event args.
propertyFieldTThe field, that is related to the property.
valueTThe value that is to be set to the field in case the PropertyChanging event is not being Cancel.
Returns:true if new value is being set
Events
Occurs when a property of an object changes.
public virtual event PropertyChangedEventHandler PropertyChanged
Implements:
Occurs before a property of an object changes.
public virtual event PropertyChangingEventHandlerEx PropertyChanging
Implements: