Class NotifyPropertyChangedExtensions
- Namespace
- CarinaStudio.Tests
- Assembly
- CarinaStudio.AppBase.Tests.dll
Extensions for INotifyPropertyChanged.
public static class NotifyPropertyChangedExtensions
- Inheritance
-
NotifyPropertyChangedExtensions
- Inherited Members
Methods
WaitForPropertyAsync(INotifyPropertyChanged, string, object?, int, CancellationToken?)
Wait for value of specific property to be target value asynchronously.
public static Task<bool> WaitForPropertyAsync(this INotifyPropertyChanged obj, string propertyName, object? targetValue, int timeout = -1, CancellationToken? cancellationToken = null)
Parameters
obj
INotifyPropertyChangedpropertyName
stringName of property.
targetValue
objectTarget value.
timeout
intTimeout in milliseconds.
cancellationToken
CancellationToken?Cancellation token to cancel waiting.