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.ObjectStatus Class Reference

Container for other UI controls that exposes various status values from the CSLA .NET business object acting as DataContext. More...

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

Public Member Functions

void Refresh ()
 Refreshes the control's property values to reflect the values of the underlying business object. More...
 
- Public Member Functions inherited from Csla.Xaml.DataDecoratorBase
 DataDecoratorBase ()
 Creates an instance of the object. More...
 

Protected Member Functions

override void DataObjectChanged ()
 This method is called when the data object to which the control is bound has changed. More...
 
override void DataPropertyChanged (PropertyChangedEventArgs e)
 This method is called when a property of the data object to which the control is bound has changed. More...
 
override 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...
 
override void DataObservableCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
 This method is called if the data object is an INotifyCollectionChanged, and the CollectionChanged event was raised by the data object. More...
 
- Protected Member Functions inherited from Csla.Xaml.DataDecoratorBase
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...
 
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

bool CanCreateObject [getprotected set]
 Exposes the CanCreateObject property of the DataContext business object. More...
 
bool CanGetObject [getprotected set]
 Exposes the CanGetObject property of the DataContext business object. More...
 
bool CanEditObject [getprotected set]
 Exposes the CanEditObject property of the DataContext business object. More...
 
bool CanDeleteObject [getprotected set]
 Exposes the CanDeleteObject property of the DataContext business object. More...
 
bool IsDeleted [getprotected set]
 Exposes the IsDeleted property of the DataContext business object. More...
 
bool IsDirty [getprotected set]
 Exposes the IsDirty property of the DataContext business object. More...
 
bool IsNew [getprotected set]
 Exposes the IsNew property of the DataContext business object. More...
 
bool IsSavable [getprotected set]
 Exposes the IsSavable property of the DataContext business object. More...
 
bool IsValid [getprotected set]
 Exposes the IsValid property of the DataContext business object. More...
 
- Properties inherited from Csla.Xaml.DataDecoratorBase
object DataObject [get]
 Gets a reference to the current data object. More...
 

Detailed Description

Container for other UI controls that exposes various status values from the CSLA .NET business object acting as DataContext.

This control provides access to the IsDirty, IsNew, IsDeleted, IsValid and IsSavable properties of a business object. The purpose behind this control is to expose those properties in a way that supports WFP data binding against those values.

Definition at line 29 of file ObjectStatus.cs.

Member Function Documentation

◆ DataBindingListChanged()

override void Csla.Xaml.ObjectStatus.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 from Csla.Xaml.DataDecoratorBase.

Definition at line 239 of file ObjectStatus.cs.

◆ DataObjectChanged()

override void Csla.Xaml.ObjectStatus.DataObjectChanged ( )
protectedvirtual

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

Reimplemented from Csla.Xaml.DataDecoratorBase.

Definition at line 218 of file ObjectStatus.cs.

◆ DataObservableCollectionChanged()

override void Csla.Xaml.ObjectStatus.DataObservableCollectionChanged ( System.Collections.Specialized.NotifyCollectionChangedEventArgs  e)
protected

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

Definition at line 250 of file ObjectStatus.cs.

◆ DataPropertyChanged()

override void Csla.Xaml.ObjectStatus.DataPropertyChanged ( PropertyChangedEventArgs  e)
protectedvirtual

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

Reimplemented from Csla.Xaml.DataDecoratorBase.

Definition at line 228 of file ObjectStatus.cs.

◆ Refresh()

void Csla.Xaml.ObjectStatus.Refresh ( )

Refreshes the control's property values to reflect the values of the underlying business object.

Definition at line 260 of file ObjectStatus.cs.

Property Documentation

◆ CanCreateObject

bool Csla.Xaml.ObjectStatus.CanCreateObject
getprotected set

Exposes the CanCreateObject property of the DataContext business object.

Definition at line 46 of file ObjectStatus.cs.

◆ CanDeleteObject

bool Csla.Xaml.ObjectStatus.CanDeleteObject
getprotected set

Exposes the CanDeleteObject property of the DataContext business object.

Definition at line 97 of file ObjectStatus.cs.

◆ CanEditObject

bool Csla.Xaml.ObjectStatus.CanEditObject
getprotected set

Exposes the CanEditObject property of the DataContext business object.

Definition at line 80 of file ObjectStatus.cs.

◆ CanGetObject

bool Csla.Xaml.ObjectStatus.CanGetObject
getprotected set

Exposes the CanGetObject property of the DataContext business object.

Definition at line 63 of file ObjectStatus.cs.

◆ IsDeleted

bool Csla.Xaml.ObjectStatus.IsDeleted
getprotected set

Exposes the IsDeleted property of the DataContext business object.

Definition at line 129 of file ObjectStatus.cs.

◆ IsDirty

bool Csla.Xaml.ObjectStatus.IsDirty
getprotected set

Exposes the IsDirty property of the DataContext business object.

Definition at line 145 of file ObjectStatus.cs.

◆ IsNew

bool Csla.Xaml.ObjectStatus.IsNew
getprotected set

Exposes the IsNew property of the DataContext business object.

Definition at line 162 of file ObjectStatus.cs.

◆ IsSavable

bool Csla.Xaml.ObjectStatus.IsSavable
getprotected set

Exposes the IsSavable property of the DataContext business object.

Definition at line 179 of file ObjectStatus.cs.

◆ IsValid

bool Csla.Xaml.ObjectStatus.IsValid
getprotected set

Exposes the IsValid property of the DataContext business object.

Definition at line 196 of file ObjectStatus.cs.