In This Article

IDesignerSafeSelectFilePromptBuilder<TOptions, TResult> Interface

Defines a builder which can be used to define options and show common file dialogs that can be safely used in all designer-related scenarios.

public interface IDesignerSafeSelectFilePromptBuilder<TOptions, TResult> where TOptions : ISelectFileOptions where TResult : ISelectFileResult<TOptions>
Type Parameters:
TOptions -

The type of ISelectFileOptions defined by the builder.

TResult -

The type of ISelectFileResult defined by the builder.

Remarks

For internal use only.

Properties

Options

The currently configured options for the file prompt.

TOptions Options { get; }

Property Value

TOptions

Methods

ShowAsync()

Displays a dialog prompting the user to select a file using the currently configured options.

Task<TResult> ShowAsync()

Returns

Task<TResult>:

A task which completes when the prompt is closed and whose result will be one of the DialogResult values indicating the result code of the user's interaction.

ShowAsync(Action<TResult>)

Displays a dialog prompting the user to select a file using the currently configured options.

void ShowAsync(Action<TResult> resultHandler)
Parameter Type Description
resultHandler Action<TResult>

The action that will be called to handle the response.

Extension Methods