OpenFilePicker

This control allows user to choose an existing file directory.

Inherits from Catel.Windows.Controls.UserControl.

OpenFilePicker 01

Properties

Property nameDescription
BaseDirectoryGets or sets directory path that will be displayed when open file dialog open.
FilterGets or sets filter string that determines what types of files are displayed from the open file dialog.
LabelWidthGets or sets label width.
LabelTextGets or sets label content.
SelectedFileGets 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