Skip to content

OpenFileDialogOptions class

Configures the open file dialog shown by IOpenFileDialogService. Every property is optional; leaving one unset keeps the platform default.

public class OpenFileDialogOptions

Public Members

name description
OpenFileDialogOptions() The default constructor.
AllowMultiple { get; set; } true to let the user select several files at once. Defaults to a single selection.
DefaultFolder { get; set; } The full path of the folder the dialog opens in.
Filter { get; set; } The file type filters, written as display name and patterns alternating and separated by |, where several patterns for one type are separated by ; and each pattern is a glob such as *.png — for example "Images|*.png;*.jpg|All files|*.*". When left unset, all files are shown.
Title { get; set; } The dialog caption.

See Also