Click or drag to resize

ModelBase.Subscribe<T> Method (Expression<Func<T>>, Action<Object>, Nullable<Guid>)

Subscribes an action to a specific property that will be called during that property's OnPropertyChanged event.

Namespace:  Xcalibur.Extensions.MVVM.Models
Assembly:  Xcalibur.Extensions.MVVM (in Xcalibur.Extensions.MVVM.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void Subscribe<T>(
	Expression<Func<T>> property,
	Action<Object> onChanged,
	Nullable<Guid> ownerId = null
)

Parameters

property
Type: System.Linq.Expressions.Expression<Func<T>>
The property.
onChanged
Type: System.Action<Object>
The onchanged action.
ownerId (Optional)
Type: System.Nullable<Guid>
The owner identifier.

Type Parameters

T

Implements

ISubscribe.Subscribe<T>(Expression<Func<T>>, Action<Object>, Nullable<Guid>)
See Also