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

Base class for creating WPF panel controls that react when the DataContext, data object and data property values are changed. More...

Inheritance diagram for Csla.Xaml.DataDecoratorBase:
Csla.Xaml.ObjectStatus

Public Member Functions

 DataDecoratorBase ()
 Creates an instance of the object. More...
 

Protected Member Functions

virtual void DataPropertyChanged (PropertyChangedEventArgs e)
 This method is called when a property of the data object to which the control is bound has changed. More...
 
virtual void DataBindingListChanged (ListChangedEventArgs e)
 This method is called if the data object is an IBindingList, and the ListChanged event was raised by the data object. More...
 
virtual void DataObservableCollectionChanged (NotifyCollectionChangedEventArgs e)
 This method is called if the data object is an INotifyCollectionChanged, and the CollectionChanged event was raised by the data object. More...
 
virtual void DataObjectChanged ()
 This method is called when the data object to which the control is bound has changed. More...
 
void FindChildBindings ()
 Scans all child controls of this panel for object bindings, and calls FoundBinding for each binding found. More...
 
virtual void FoundBinding (Binding bnd, FrameworkElement control, DependencyProperty prop)
 Called by FindChildBindings each time an object binding is found. More...
 

Properties

object DataObject [get]
 Gets a reference to the current data object. More...
 

Detailed Description

Base class for creating WPF panel controls that react when the DataContext, data object and data property values are changed.

Definition at line 26 of file DataDecoratorBase.cs.

Constructor & Destructor Documentation

◆ DataDecoratorBase()

Csla.Xaml.DataDecoratorBase.DataDecoratorBase ( )

Creates an instance of the object.

Definition at line 52 of file DataDecoratorBase.cs.

Member Function Documentation

◆ DataBindingListChanged()

virtual void Csla.Xaml.DataDecoratorBase.DataBindingListChanged ( ListChangedEventArgs  e)
protectedvirtual

This method is called if the data object is an IBindingList, and the ListChanged event was raised by the data object.

Reimplemented in Csla.Xaml.ObjectStatus.

Definition at line 257 of file DataDecoratorBase.cs.

◆ DataObjectChanged()

virtual void Csla.Xaml.DataDecoratorBase.DataObjectChanged ( )
protectedvirtual

This method is called when the data object to which the control is bound has changed.

Reimplemented in Csla.Xaml.ObjectStatus.

Definition at line 277 of file DataDecoratorBase.cs.

◆ DataObservableCollectionChanged()

virtual void Csla.Xaml.DataDecoratorBase.DataObservableCollectionChanged ( NotifyCollectionChangedEventArgs  e)
protectedvirtual

This method is called if the data object is an INotifyCollectionChanged, and the CollectionChanged event was raised by the data object.

Definition at line 268 of file DataDecoratorBase.cs.

◆ DataPropertyChanged()

virtual void Csla.Xaml.DataDecoratorBase.DataPropertyChanged ( PropertyChangedEventArgs  e)
protectedvirtual

This method is called when a property of the data object to which the control is bound has changed.

Reimplemented in Csla.Xaml.ObjectStatus.

Definition at line 246 of file DataDecoratorBase.cs.

◆ FindChildBindings()

void Csla.Xaml.DataDecoratorBase.FindChildBindings ( )
protected

Scans all child controls of this panel for object bindings, and calls FoundBinding for each binding found.

Definition at line 292 of file DataDecoratorBase.cs.

◆ FoundBinding()

virtual void Csla.Xaml.DataDecoratorBase.FoundBinding ( Binding  bnd,
FrameworkElement  control,
DependencyProperty  prop 
)
protectedvirtual

Called by FindChildBindings each time an object binding is found.

Parameters
bndThe Binding object.
controlThe control containing the binding.
propThe data bound DependencyProperty.

Definition at line 331 of file DataDecoratorBase.cs.

Property Documentation

◆ DataObject

object Csla.Xaml.DataDecoratorBase.DataObject
getprotected

Gets a reference to the current data object.

The DataContext may not be the data object. The DataContext may be a DataSourceProvider control. This property returns a reference to the actual data object, not necessarily the DataContext itself.

Definition at line 41 of file DataDecoratorBase.cs.