Edit this page

Open File Dialog

The RadCloudUpload exposes the CreateOpenFileDialog property. It is of type Func<Microsoft.Win32.OpenFileDialog> and can be used to get or set a custom open file dialog. You can use this property to restrict users to upload certain type of files.

XAML

xCloud.CreateOpenFileDialog = () =>
{
    OpenFileDialog ofd = new OpenFileDialog();
    ofd.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
    return ofd;
};

See Also