CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Core.BindableBase Class Reference

This class implements INotifyPropertyChanged and INotifyPropertyChanging in a serialization-safe manner. More...

Inheritance diagram for Csla.Core.BindableBase:
Csla.Core.MobileObject Csla.Serialization.Mobile.IMobileObject Csla.Core.UndoableBase Csla.ReadOnlyBase< T > Csla.Core.BusinessBase Csla.BusinessBase< T > Csla.Test.DataPortal.MultipleDataAccessBase< T > Csla.Test.DataPortalTest.LegacySplitBase< T > Csla.Test.DataPortalTest.SplitBase< T > Csla.Test.DataPortalTest.SplitOverloadBase< T > Csla.Test.PropertyGetSet.EditableGetSetTopBase< T > Csla.Test.PropertyGetSet.EditableGetSetTopNFIBase< T > Csla.Test.Silverlight.PropertyGetSet.AbstractGetSet< T > Csla.Testing.Business.ApplicationContext.ContextBOVerifier< T >

Protected Member Functions

 BindableBase ()
 Creates an instance of the type. More...
 
virtual bool ShouldHandlerSerialize (PropertyChangedEventHandler value)
 Override this method to change the default logic for determining if the event handler should be serialized More...
 
virtual void OnPropertyChanged (string propertyName)
 Call this method to raise the PropertyChanged event for a specific property. More...
 
virtual void OnMetaPropertyChanged (string propertyName)
 
virtual void OnPropertyChanged (IPropertyInfo propertyInfo)
 Call this method to raise the PropertyChanged event for a specific property. More...
 
virtual void OnIsDirtyChanged ()
 Call this method to raise the PropertyChanged event for all object properties. More...
 
virtual void OnUnknownPropertyChanged ()
 Call this method to raise the PropertyChanged event for all object properties. More...
 
virtual void OnIsDirtyChanging ()
 Call this method to raise the PropertyChanging event for all object properties. More...
 
virtual void OnUnknownPropertyChanging ()
 Call this method to raise the PropertyChanging event for all object properties. More...
 
virtual void OnPropertyChanging (string propertyName)
 Call this method to raise the PropertyChanging event for a specific property. More...
 
virtual void OnPropertyChanging (IPropertyInfo propertyInfo)
 Call this method to raise the PropertyChanging event for a specific property. More...
 
virtual bool ShouldHandlerSerialize (PropertyChangingEventHandler value)
 Override this method to change the default logic for determining if the event handler should be serialized More...
 
- Protected Member Functions inherited from Csla.Core.MobileObject
virtual void OnGetState (SerializationInfo info, StateMode mode)
 Override this method to insert your field values into the MobileFormatter serialzation stream. More...
 
virtual void OnGetChildren (SerializationInfo info, MobileFormatter formatter)
 Override this method to insert your child object references into the MobileFormatter serialzation stream. More...
 
virtual void OnSetState (SerializationInfo info, StateMode mode)
 Override this method to retrieve your field values from the MobileFormatter serialzation stream. More...
 
virtual void OnSetChildren (SerializationInfo info, MobileFormatter formatter)
 Override this method to retrieve your child object references from the MobileFormatter serialzation stream. More...
 

Properties

PropertyChangedEventHandler PropertyChanged
 Implements a serialization-safe PropertyChanged event. More...
 
PropertyChangingEventHandler PropertyChanging
 Implements a serialization-safe PropertyChanging event. More...
 

Additional Inherited Members

Detailed Description

This class implements INotifyPropertyChanged and INotifyPropertyChanging in a serialization-safe manner.

Definition at line 19 of file BindableBase.cs.

Constructor & Destructor Documentation

◆ BindableBase()

Csla.Core.BindableBase.BindableBase ( )
protected

Creates an instance of the type.

Definition at line 27 of file BindableBase.cs.

Member Function Documentation

◆ OnIsDirtyChanged()

virtual void Csla.Core.BindableBase.OnIsDirtyChanged ( )
protectedvirtual

Call this method to raise the PropertyChanged event for all object properties.

This method is for backward compatibility with CSLA .NET 1.x.

Definition at line 141 of file BindableBase.cs.

◆ OnIsDirtyChanging()

virtual void Csla.Core.BindableBase.OnIsDirtyChanging ( )
protectedvirtual

Call this method to raise the PropertyChanging event for all object properties.

This method is for backward compatibility with CSLA .NET 1.x.

Definition at line 201 of file BindableBase.cs.

◆ OnMetaPropertyChanged()

virtual void Csla.Core.BindableBase.OnMetaPropertyChanged ( string  propertyName)
protectedvirtual

Call this method to raise the PropertyChanged event for a MetaData (IsXYZ) property

Parameters
propertyNameName of the property that has changed.

This method may be called by properties in the business class to indicate the change in a specific property.

Definition at line 106 of file BindableBase.cs.

◆ OnPropertyChanged() [1/2]

virtual void Csla.Core.BindableBase.OnPropertyChanged ( IPropertyInfo  propertyInfo)
protectedvirtual

Call this method to raise the PropertyChanged event for a specific property.

Parameters
propertyInfoPropertyInfo of the property that has changed.

This method may be called by properties in the business class to indicate the change in a specific property.

Reimplemented in Csla.Core.BusinessBase.

Definition at line 127 of file BindableBase.cs.

◆ OnPropertyChanged() [2/2]

virtual void Csla.Core.BindableBase.OnPropertyChanged ( string  propertyName)
protectedvirtual

Call this method to raise the PropertyChanged event for a specific property.

Parameters
propertyNameName of the property that has changed.

This method may be called by properties in the business class to indicate the change in a specific property.

Definition at line 85 of file BindableBase.cs.

◆ OnPropertyChanging() [1/2]

virtual void Csla.Core.BindableBase.OnPropertyChanging ( IPropertyInfo  propertyInfo)
protectedvirtual

Call this method to raise the PropertyChanging event for a specific property.

Parameters
propertyInfoPropertyInfo of the property that has Changing.

This method may be called by properties in the business class to indicate the change in a specific property.

Definition at line 253 of file BindableBase.cs.

◆ OnPropertyChanging() [2/2]

virtual void Csla.Core.BindableBase.OnPropertyChanging ( string  propertyName)
protectedvirtual

Call this method to raise the PropertyChanging event for a specific property.

Parameters
propertyNameName of the property that has Changing.

This method may be called by properties in the business class to indicate the change in a specific property.

Definition at line 232 of file BindableBase.cs.

◆ OnUnknownPropertyChanged()

virtual void Csla.Core.BindableBase.OnUnknownPropertyChanged ( )
protectedvirtual

Call this method to raise the PropertyChanged event for all object properties.

This method is automatically called by MarkDirty. It actually raises PropertyChanged for an empty string, which tells data binding to refresh all properties.

Definition at line 156 of file BindableBase.cs.

◆ OnUnknownPropertyChanging()

virtual void Csla.Core.BindableBase.OnUnknownPropertyChanging ( )
protectedvirtual

Call this method to raise the PropertyChanging event for all object properties.

This method is automatically called by MarkDirty. It actually raises PropertyChanging for an empty string, which tells data binding to refresh all properties.

Definition at line 216 of file BindableBase.cs.

◆ ShouldHandlerSerialize() [1/2]

virtual bool Csla.Core.BindableBase.ShouldHandlerSerialize ( PropertyChangedEventHandler  value)
protectedvirtual

Override this method to change the default logic for determining if the event handler should be serialized

Parameters
valuethe event handler to review
Returns

Definition at line 67 of file BindableBase.cs.

◆ ShouldHandlerSerialize() [2/2]

virtual bool Csla.Core.BindableBase.ShouldHandlerSerialize ( PropertyChangingEventHandler  value)
protectedvirtual

Override this method to change the default logic for determining if the event handler should be serialized

Parameters
valuethe event handler to review
Returns

Definition at line 264 of file BindableBase.cs.

Property Documentation

◆ PropertyChanged

PropertyChangedEventHandler Csla.Core.BindableBase.PropertyChanged
addremove

Implements a serialization-safe PropertyChanged event.

Definition at line 39 of file BindableBase.cs.

◆ PropertyChanging

PropertyChangingEventHandler Csla.Core.BindableBase.PropertyChanging
addremove

Implements a serialization-safe PropertyChanging event.

Definition at line 170 of file BindableBase.cs.