Displays validation information for a business object property, and manipulates an associated UI control based on the business object's authorization rules. More...
Public Member Functions | |
PropertyStatus () | |
Creates an instance of the object. More... | |
override void | OnApplyTemplate () |
Applies the visual template. More... | |
Static Public Attributes | |
static readonly DependencyProperty | PropertyProperty |
Gets or sets the source business property to which this control is bound. More... | |
static readonly DependencyProperty | BrokenRulesProperty |
Gets the broken rules collection from the business object. More... | |
Protected Member Functions | |
virtual void | SetSource (bool propertyValueChanged) |
Sets the source binding and updates status. More... | |
virtual void | SetSource (object dataItem) |
Sets the source binding and updates status. More... | |
object | GetRealSource (object source, string bindingPath) |
Gets the real source helper method. More... | |
virtual void | UpdateState () |
Updates the state on control Property. More... | |
virtual void | ClearState () |
Clears the state. More... | |
virtual void | GoToState (bool useTransitions) |
Updates the status of the Property in UI More... | |
DependencyObject | FindChild (DependencyObject parent, string name) |
Find child dependency property. More... | |
virtual void | OnPropertyChanged (string propertyName) |
Raises the PropertyChanged event. More... | |
Properties | |
bool | IsReadOnly [getset] |
Gets or sets a value indicating whether this DependencyProperty field is read only. More... | |
object | Property [getset] |
Gets or sets the source business property to which this control is bound. More... | |
object | Source [getset] |
Gets or sets the Source. More... | |
string | BindingPath [getset] |
Gets or sets the binding path. More... | |
string | PropertyName [getset] |
Gets or sets the name of the property. More... | |
ObservableCollection< BrokenRule > | BrokenRules [get] |
Gets the broken rules collection from the business object. More... | |
bool | CanRead [getprotected set] |
Gets a value indicating whether the user is authorized to read the property. More... | |
bool | CanWrite [getprotected set] |
Gets a value indicating whether the user is authorized to write the property. More... | |
bool | IsBusy [get] |
Gets a value indicating whether the property is busy with an asynchronous operation. More... | |
bool | IsValid [get] |
Gets a value indicating whether the property is valid. More... | |
RuleSeverity | RuleSeverity [get] |
Gets a valud indicating the worst severity of all broken rules for this property (if IsValid is false). More... | |
string | RuleDescription [get] |
Gets the description of the most severe broken rule for this property. More... | |
Events | |
PropertyChangedEventHandler | PropertyChanged |
Event raised when a property has changed. More... | |
Displays validation information for a business object property, and manipulates an associated UI control based on the business object's authorization rules.
Definition at line 37 of file PropertyStatus.cs.
Csla.Xaml.PropertyStatus.PropertyStatus | ( | ) |
Creates an instance of the object.
Definition at line 72 of file PropertyStatus.cs.
|
protectedvirtual |
Clears the state.
Must be called whenever the DataContext is updated (and new object is selected).
Definition at line 628 of file PropertyStatus.cs.
|
protected |
Find child dependency property.
parent | The parent. |
name | The name. |
Definition at line 678 of file PropertyStatus.cs.
|
protected |
Gets the real source helper method.
source | The source. |
bindingPath | The binding path. |
Definition at line 264 of file PropertyStatus.cs.
|
protectedvirtual |
Updates the status of the Property in UI
useTransitions | if set to true then use transitions. |
Definition at line 639 of file PropertyStatus.cs.
override void Csla.Xaml.PropertyStatus.OnApplyTemplate | ( | ) |
Applies the visual template.
Definition at line 106 of file PropertyStatus.cs.
|
protectedvirtual |
Raises the PropertyChanged event.
propertyName | Name of the changed property. |
Definition at line 710 of file PropertyStatus.cs.
|
protectedvirtual |
Sets the source binding and updates status.
Definition at line 201 of file PropertyStatus.cs.
|
protectedvirtual |
Sets the source binding and updates status.
Definition at line 214 of file PropertyStatus.cs.
|
protectedvirtual |
Updates the state on control Property.
Definition at line 545 of file PropertyStatus.cs.
|
static |
Gets the broken rules collection from the business object.
Definition at line 338 of file PropertyStatus.cs.
|
static |
Gets or sets the source business property to which this control is bound.
Definition at line 120 of file PropertyStatus.cs.
|
getsetprotected |
|
get |
Gets the broken rules collection from the business object.
Definition at line 349 of file PropertyStatus.cs.
|
getprotected set |
Gets a value indicating whether the user is authorized to read the property.
Definition at line 365 of file PropertyStatus.cs.
|
getprotected set |
Gets a value indicating whether the user is authorized to write the property.
Definition at line 384 of file PropertyStatus.cs.
|
get |
Gets a value indicating whether the property is busy with an asynchronous operation.
Definition at line 403 of file PropertyStatus.cs.
|
getsetprotected |
Gets or sets a value indicating whether this DependencyProperty field is read only.
true
if this DependencyProperty is read only; otherwise, false
.
Definition at line 52 of file PropertyStatus.cs.
|
get |
Gets a value indicating whether the property is valid.
Definition at line 422 of file PropertyStatus.cs.
|
getset |
Gets or sets the source business property to which this control is bound.
Definition at line 144 of file PropertyStatus.cs.
|
getsetprotected |
Gets or sets the name of the property.
The name of the property.
Definition at line 192 of file PropertyStatus.cs.
|
get |
Gets the description of the most severe broken rule for this property.
Definition at line 462 of file PropertyStatus.cs.
|
get |
Gets a valud indicating the worst severity of all broken rules for this property (if IsValid is false).
Definition at line 443 of file PropertyStatus.cs.
|
getsetprotected |
PropertyChangedEventHandler Csla.Xaml.PropertyStatus.PropertyChanged |
Event raised when a property has changed.
Definition at line 704 of file PropertyStatus.cs.