Class MapObservable
Base class implementation of the System.ComponentModel.INotifyPropertyChanged interface
Implements
System.ComponentModel.INotifyPropertyChanged
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()
Namespace: OSGeo.MapGuide.MaestroAPI.Mapping
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public abstract class MapObservable : INotifyPropertyChanged
Fields
| Improve this Doc View Source_disableChangeTracking
Indicates whether property change events will be raised
Declaration
protected bool _disableChangeTracking
Field Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceObservableSet<T>(T, T, Action<T>, String)
If the specified old value is different from the new value, the specified setter is invoked and a System.ComponentModel.INotifyPropertyChanged.PropertyChanged event is raised
Declaration
protected virtual bool ObservableSet<T>(T oldValue, T newValue, Action<T> setter, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
T | oldValue | |
T | newValue | |
System.Action<T> | setter | |
System.String | propertyName |
Returns
Type | Description |
---|---|
System.Boolean |
Type Parameters
Name | Description |
---|---|
T |
OnPropertyChanged(String)
Raises the PropertyChanged event
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |
SetField<T>(ref T, T, String)
Set the specified field with the specified value raising the PropertyChanged event
Declaration
protected bool SetField<T>(ref T field, T value, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
T | field | |
T | value | |
System.String | propertyName |
Returns
Type | Description |
---|---|
System.Boolean |
Type Parameters
Name | Description |
---|---|
T |
Events
| Improve this Doc View SourcePropertyChanged
Occurs when a property changes
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |
Implements
System.ComponentModel.INotifyPropertyChanged