PropertyChangedAlerterOnPropertyChanged Method |
Executes the property changed action. This alerts subscribers to its change in value.
Namespace:
butterflow_ui
Assembly:
butterflow-ui (in butterflow-ui.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax protected virtual void OnPropertyChanged(
[CallerMemberNameAttribute] string name = null
)
Protected Overridable Sub OnPropertyChanged (
<CallerMemberNameAttribute> Optional name As String = Nothing
)
protected:
virtual void OnPropertyChanged(
[CallerMemberNameAttribute] String^ name = nullptr
)
abstract OnPropertyChanged :
[<CallerMemberNameAttribute>] ?name : string
(* Defaults:
let _name = defaultArg name null
*)
-> unit
override OnPropertyChanged :
[<CallerMemberNameAttribute>] ?name : string
(* Defaults:
let _name = defaultArg name null
*)
-> unit
Parameters
- name (Optional)
- Type: SystemString
(Optional) The name of the property.
Examples
This will automatically pass in "SomeProperty" as the property name, derived useing the
CallerMemberNameAttribute attribute.
Automatic Property Detection
public bool SomeProperty
{
get
{
return this.someProperty;
}
set
{
this.someProperty = value;
OnPropertyChanged();
}
}
See Also