Class AsyncActionWindow
- Namespace
- Acuit.Pinpoint.Workstation.Windows
- Assembly
- Acuit.Pinpoint.Workstation.Abstractions.dll
A window used by PerformAsyncActionViaModalWindow<TResult>(Func<CancellationToken, Task<TResult>>, Action<AsyncActionWindow>?).
public abstract class AsyncActionWindow : Window, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
- Inheritance
-
AsyncActionWindow
- Implements
- Inherited Members
Constructors
AsyncActionWindow()
protected AsyncActionWindow()
Properties
Message
Gets or sets the message to display in the window. The default value is a localized string for "Please wait...".
public abstract string Message { get; set; }
Property Value
ShowCancelButton
Gets or sets whether to display the "Cancel" button, which will signal the cancellation token provided to the asynchronous action when clicked. This will default to true when the asynchronous action accepts a CancellationToken (i.e., from PerformAsyncActionViaModalWindow(IUserInterfaceService, Func<CancellationToken, Task>, Action<AsyncActionWindow>?) or PerformAsyncActionViaModalWindow<TResult>(Func<CancellationToken, Task<TResult>>, Action<AsyncActionWindow>?)), and false when it does not (i.e., from PerformAsyncActionViaModalWindow(IUserInterfaceService, Func<Task>, Action<AsyncActionWindow>?) or PerformAsyncActionViaModalWindow<TResult>(IUserInterfaceService, Func<Task<TResult>>, Action<AsyncActionWindow>?)).
public abstract bool ShowCancelButton { get; set; }
Property Value
UseTouchStyling
Gets or sets whether to use touch-friendly styling, which includes larger buttons and spacing. This defaults to true. It should normally only be set to false for operations initiated by a user sitting at the computer, such as when configuring the station.
public abstract bool UseTouchStyling { get; set; }