OpenFilePicker

This control allows user to choose an existing file directory.

Inherits from Catel.Windows.Controls.UserControl.

OpenFilePicker 01

Properties

Property name Description
BaseDirectory Gets or sets directory path that will be displayed when open file dialog open.
Filter Gets or sets filter string that determines what types of files are displayed from the open file dialog.
LabelWidth Gets or sets label width.
LabelText Gets or sets label content.
SelectedFile Gets or sets selected file path.

How to use

Specify label text and width and bind a file path to the SelectedFile property. Also you can specify file filter.

<orc:OpenFilePicker LabelText="OpenFilePicker control"
                    LabelWidth="150"
                    SelectedFile="{Binding SelectedFile}"
                    BaseDirectory="C:\"
                    Filter="Image files (*.bmp, *.jpg)|*.bmp;*.jpg|All files (*.*)|*.*" />

Have a question about Catel or WildGums controls? Use StackOverflow with the Catel tag!


Discussion