Base class for creating WPF panel controls that react when the DataContext, data object and data property values are changed. More...
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... | |
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.
Csla.Xaml.DataDecoratorBase.DataDecoratorBase | ( | ) |
Creates an instance of the object.
Definition at line 52 of file DataDecoratorBase.cs.
|
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.
|
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.
|
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.
|
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.
|
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.
|
protectedvirtual |
Called by FindChildBindings each time an object binding is found.
bnd | The Binding object. |
control | The control containing the binding. |
prop | The data bound DependencyProperty. |
Definition at line 331 of file DataDecoratorBase.cs.
|
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.