ShowDialog Method
Shows a modal progress view
Syntax
void ShowDialog(
System.Threading.Tasks.Task task,
System.Threading.CancellationTokenSource cancelToken
)Sub ShowDialog( _
ByVal task As System.Threading.Tasks.Task, _
ByVal cancelToken As System.Threading.CancellationTokenSource _
) Parameters
| Name | Description |
|---|---|
| task | An optional task that is executing a background process. If specified, then the progress view will automatically close when the task finishes executing |
| cancelToken | A cancellation token whose Cancel method will be called if the user clicks the Cancel button on the Progress View |
Remarks
If a task is specified, ShowDialog will not return until the task is completed (i.e. it is in one of the three final states: RanToCopmletion, Faulted or Canceled).