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
objINotifyPropertyChangedpropertyNamestringName of property.
targetValueobjectTarget value.
timeoutintTimeout in milliseconds.
cancellationTokenCancellationToken?Cancellation token to cancel waiting.