FileBrowserPicker

Ecng.Xaml

Visual control used to select a file path with open/save dialogs and validation.

Inherits: UserControl

Implements: IComponentConnector

Constructors

FileBrowserPicker
public FileBrowserPicker()
fileBrowserPicker = FileBrowserPicker()

Initializes a new instance of the FileBrowserPicker.

Properties

DefaultExt
public string DefaultExt { get; set; }
value = fileBrowserPicker.DefaultExt
fileBrowserPicker.DefaultExt = value

Gets or sets the default file extension used by the dialog.

File
public string File { get; set; }
value = fileBrowserPicker.File
fileBrowserPicker.File = value

Gets or sets the selected file path.

Filter
public string Filter { get; set; }
value = fileBrowserPicker.Filter
fileBrowserPicker.Filter = value

Gets or sets the file types filter string.

IsSaving
public bool IsSaving { get; set; }
value = fileBrowserPicker.IsSaving
fileBrowserPicker.IsSaving = value

Gets or sets a value indicating whether the dialog is used to save files (true) or open files (false).

Methods

InitializeComponent
public void InitializeComponent()
fileBrowserPicker.InitializeComponent()

InitializeComponent

Events

FileChanged
public event Action<string> FileChanged
fileBrowserPicker.FileChanged += handler

Raised when File property changes.

Fields

DefaultExtProperty
public static readonly DependencyProperty DefaultExtProperty
value = FileBrowserPicker.DefaultExtProperty

DependencyProperty for DefaultExt.

FileProperty
public static readonly DependencyProperty FileProperty
value = FileBrowserPicker.FileProperty

DependencyProperty for File.

FilterProperty
public static readonly DependencyProperty FilterProperty
value = FileBrowserPicker.FilterProperty

DependencyProperty for Filter.

IsSavingProperty
public static readonly DependencyProperty IsSavingProperty
value = FileBrowserPicker.IsSavingProperty

DependencyProperty for IsSaving.