BindableBaseSetPropertyT Method (T, T, PropertyChangedEventArgs) |
Checks to see if the property is the same as the specified value. It they're different then set the value and raise an
PropertyChanged event.
Namespace:
Demo3D.Common
Assembly:
Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntaxprotected virtual bool SetProperty<T>(
ref T storage,
T value,
PropertyChangedEventArgs args
)
Parameters
- storage
- Type: T
Reference to the value that will be updated. - value
- Type: T
The new value to use. - args
- Type: System.ComponentModelPropertyChangedEventArgs
The PropertyChangedEventArgs for the property.
Type Parameters
- T
- The type of the property.
Return Value
Type:
BooleanTrue if the value is changed, otherwise false.
See Also