Expose metastate information about a property.
More...
|
| PropertyInfo () |
| Creates an instance of the object. More...
|
|
| PropertyInfo (bool testing) |
| Creates an instance of the object for testing. More...
|
|
virtual void | UpdateState () |
| Updates the metastate values on control based on the current state of the business object and property. More...
|
|
|
virtual BindingExpression | ParseRelativeBinding (BindingExpression sourceBinding) |
| Checks a binding expression to see if it is a relative source binding used in a control template. More...
|
|
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...
|
|
PropertyPath | GetRelativePath (object source, string bindingPath) |
| Gets the part of the binding path relevant to the given source. More...
|
|
virtual void | OnPropertyChanged (string propertyName) |
| Raises the PropertyChanged event. More...
|
|
|
ObservableCollection< BrokenRule > | BrokenRules [get] |
| Gets the broken rules collection from the business object. More...
|
|
object | Source [getset] |
| Gets or sets the Source. More...
|
|
string | BindingPath [getset] |
| Gets or sets the binding path. More...
|
|
object | Property [getset] |
| Gets or sets the source business property to which this control is bound. More...
|
|
string | ErrorText [get] |
| Gets the validation error messages for a property on the Model More...
|
|
string | WarningText [get] |
| Gets the validation warning messages for a property on the Model More...
|
|
string | InformationText [get] |
| Gets the validation information messages for a property on the Model More...
|
|
object | Value [getset] |
| Gets and sets the value of the property on 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 value 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...
|
|
object | CustomTag [getset] |
| Gets or sets an arbitrary value associated with this PropertyInfo instance. More...
|
|
Expose metastate information about a property.
Definition at line 38 of file Csla.Xaml.Shared/PropertyInfo.cs.
◆ PropertyInfo() [1/2]
Csla.Xaml.PropertyInfo.PropertyInfo |
( |
| ) |
|
◆ PropertyInfo() [2/2]
Csla.Xaml.PropertyInfo.PropertyInfo |
( |
bool |
testing | ) |
|
◆ GetRealSource()
object Csla.Xaml.PropertyInfo.GetRealSource |
( |
object |
source, |
|
|
string |
bindingPath |
|
) |
| |
|
protected |
◆ GetRelativePath()
PropertyPath Csla.Xaml.PropertyInfo.GetRelativePath |
( |
object |
source, |
|
|
string |
bindingPath |
|
) |
| |
|
protected |
Gets the part of the binding path relevant to the given source.
- Parameters
-
source | The source. |
bindingPath | The binding path. |
- Returns
Definition at line 483 of file Csla.Xaml.Shared/PropertyInfo.cs.
◆ OnPropertyChanged()
virtual void Csla.Xaml.PropertyInfo.OnPropertyChanged |
( |
string |
propertyName | ) |
|
|
protectedvirtual |
◆ ParseRelativeBinding()
virtual BindingExpression Csla.Xaml.PropertyInfo.ParseRelativeBinding |
( |
BindingExpression |
sourceBinding | ) |
|
|
protectedvirtual |
Checks a binding expression to see if it is a relative source binding used in a control template.
- Parameters
-
sourceBinding | The binding expression to parse. |
- Returns
- If the source binding is a relative source binding, this method finds the proper dependency property on the parent control and returns the binding expression for that property.
Definition at line 317 of file Csla.Xaml.Shared/PropertyInfo.cs.
◆ SetSource() [1/2]
virtual void Csla.Xaml.PropertyInfo.SetSource |
( |
bool |
propertyValueChanged | ) |
|
|
protectedvirtual |
◆ SetSource() [2/2]
virtual void Csla.Xaml.PropertyInfo.SetSource |
( |
object |
dataItem | ) |
|
|
protectedvirtual |
◆ UpdateState()
virtual void Csla.Xaml.PropertyInfo.UpdateState |
( |
| ) |
|
|
virtual |
◆ BrokenRulesProperty
readonly DependencyProperty Csla.Xaml.PropertyInfo.BrokenRulesProperty |
|
static |
Initial value:= DependencyProperty.Register(
"BrokenRules",
typeof(ObservableCollection<BrokenRule>),
null)
PropertyInfo()
Creates an instance of the object.
Gets the broken rules collection from the business object.
Definition at line 100 of file Csla.Xaml.Shared/PropertyInfo.cs.
◆ MyDataContextProperty
readonly DependencyProperty Csla.Xaml.PropertyInfo.MyDataContextProperty |
|
static |
Initial value:=
DependencyProperty.Register("MyDataContext",
typeof(Object),
new PropertyMetadata(MyDataContextPropertyChanged))
Used to monitor for changes in the binding path.
Definition at line 127 of file Csla.Xaml.Shared/PropertyInfo.cs.
◆ PropertyProperty
readonly DependencyProperty Csla.Xaml.PropertyInfo.PropertyProperty |
|
static |
Initial value:= DependencyProperty.Register(
"Property",
typeof(object),
new PropertyMetadata(new object(), (o, e) =>
{
bool changed = true;
if (e.NewValue == null)
{
if (e.OldValue == null)
changed = false;
}
else if (e.NewValue.Equals(e.OldValue))
{
changed = false;
}
}))
Gets or sets the source business property to which this control is bound.
Definition at line 273 of file Csla.Xaml.Shared/PropertyInfo.cs.
◆ RelativeBindingProperty
readonly DependencyProperty Csla.Xaml.PropertyInfo.RelativeBindingProperty |
|
static |
Initial value:=
DependencyProperty.Register("RelativeBinding",
typeof(Object),
new PropertyMetadata(RelativeBindingPropertyChanged))
Used to monitor for changes in the binding path.
Definition at line 153 of file Csla.Xaml.Shared/PropertyInfo.cs.
◆ BindingPath
string Csla.Xaml.PropertyInfo.BindingPath |
|
getsetprotected |
◆ BrokenRules
ObservableCollection<BrokenRule> Csla.Xaml.PropertyInfo.BrokenRules |
|
get |
◆ CanRead
bool Csla.Xaml.PropertyInfo.CanRead |
|
getprotected set |
◆ CanWrite
bool Csla.Xaml.PropertyInfo.CanWrite |
|
getprotected set |
◆ CustomTag
object Csla.Xaml.PropertyInfo.CustomTag |
|
getset |
◆ ErrorText
string Csla.Xaml.PropertyInfo.ErrorText |
|
get |
◆ InformationText
string Csla.Xaml.PropertyInfo.InformationText |
|
get |
◆ IsBusy
bool Csla.Xaml.PropertyInfo.IsBusy |
|
get |
◆ IsValid
bool Csla.Xaml.PropertyInfo.IsValid |
|
get |
◆ Property
object Csla.Xaml.PropertyInfo.Property |
|
getset |
◆ RuleDescription
string Csla.Xaml.PropertyInfo.RuleDescription |
|
get |
◆ RuleSeverity
◆ Source
object Csla.Xaml.PropertyInfo.Source |
|
getsetprotected |
◆ Value
object Csla.Xaml.PropertyInfo.Value |
|
getset |
◆ WarningText
string Csla.Xaml.PropertyInfo.WarningText |
|
get |
◆ PropertyChanged
PropertyChangedEventHandler Csla.Xaml.PropertyInfo.PropertyChanged |