Table of Contents

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 INotifyPropertyChanged

INotifyPropertyChanged.

propertyName string

Name of property.

targetValue object

Target value.

timeout int

Timeout in milliseconds.

cancellationToken CancellationToken?

Cancellation token to cancel waiting.

Returns

Task<bool>

True if value of property has been changed to target value before cancellation or timeout.