New to Telerik UI for WPFStart a free 30-day trial

Control used for choosing a valid file / folder path via file / folder dialog or via typing in watermark text box.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.FileDialogs.dll

Syntax:

C#
[TelerikToolboxCategory("File Dialogs")]
public class RadFilePathPicker : Control

Inheritance: objectRadFilePathPicker

Constructors

Initializes a new instance of the RadFilePathPicker class.

C#
public RadFilePathPicker()

Fields

ClearButtonContentProperty

DependencyProperty

Identifies the ClearButtonContent dependency property.

C#
public static readonly DependencyProperty ClearButtonContentProperty

ClearButtonTemplateProperty

DependencyProperty

Identifies the ClearButtonTemplate dependency property.

C#
public static readonly DependencyProperty ClearButtonTemplateProperty

DialogTypeProperty

DependencyProperty

Initializes the DialogType property.

C#
public static readonly DependencyProperty DialogTypeProperty

EditorVisibilityProperty

DependencyProperty

Identifies the EditorVisibility dependency property.

C#
public static readonly DependencyProperty EditorVisibilityProperty

Registers the FilePathChanged routed event.

C#
public static readonly RoutedEvent FilePathChangedEvent

Registers the FilePathChanging routed event.

C#
public static readonly RoutedEvent FilePathChangingEvent

FilePathProperty

DependencyProperty

Initializes the FilePath property.

C#
public static readonly DependencyProperty FilePathProperty

Identifies the IconTemplateSelector dependency property.

C#
public static readonly DependencyProperty IconTemplateSelectorProperty

IconVisibilityProperty

DependencyProperty

Identifies the IconVisibility dependency property.

C#
public static readonly DependencyProperty IconVisibilityProperty

IsReadOnlyProperty

DependencyProperty

Identifies the IsReadOnly dependency property.

C#
public static readonly DependencyProperty IsReadOnlyProperty

Identifies the ShowDialogButtonContent dependency property.

C#
public static readonly DependencyProperty ShowDialogButtonContentProperty

Identifies the ShowDialogButtonTemplate dependency property.

C#
public static readonly DependencyProperty ShowDialogButtonTemplateProperty

TextProperty

DependencyProperty

Identifies the Text dependency property.

C#
public static readonly DependencyProperty TextProperty

WatermarkContentProperty

DependencyProperty

Identifies the WatermarkContent dependency property.

C#
public static readonly DependencyProperty WatermarkContentProperty

WatermarkTemplateProperty

DependencyProperty

Identifies the WatermarkTemplate dependency property.

C#
public static readonly DependencyProperty WatermarkTemplateProperty

Properties

Gets or sets the content of the clear button.

C#
public object ClearButtonContent { get; set; }

Gets or sets the content template of the clear button.

C#
public DataTemplate ClearButtonTemplate { get; set; }

Gets or sets a value indicating the type of the dialog that is opened by the show dialog button.

C#
public DialogType DialogType { get; set; }

Gets or sets a value indicating the visibility of the watermark textbox.

C#
public Visibility EditorVisibility { get; set; }

Gets or sets the path to a given file or folder. This property accepts only a valid (existing) file / folder path.

C#
public string FilePath { get; set; }

IconTemplateSelector

DataTemplateSelector

Gets or sets the DataTemplateSelector which chooses icon template based on the given FilePath.

C#
public DataTemplateSelector IconTemplateSelector { get; set; }

IconVisibility

Visibility

Gets or sets a value indicating the visibility of the file path icon.

C#
public Visibility IconVisibility { get; set; }

Gets or sets a value indicating whether the watermark textbox is in read-only mode.

C#
public bool IsReadOnly { get; set; }

Gets or sets the content of the show dialog button.

C#
public object ShowDialogButtonContent { get; set; }

Gets or sets the content template of the show dialog button.

C#
public DataTemplate ShowDialogButtonTemplate { get; set; }

Gets or sets the text of the textbox. If the text is a valid file / folder path, FilePath property will be updated. Otherwise FilePath is set to empty string.

C#
public string Text { get; set; }

Gets or sets the content to be shown when the TextBox is empty and not focused.

C#
public object WatermarkContent { get; set; }

WatermarkTemplate

DataTemplate

Gets or sets the template for presenting the content, shown when the TextBox is empty and not focused.

C#
public DataTemplate WatermarkTemplate { get; set; }

Methods

C#
public override void OnApplyTemplate()
C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Called when FilePath property is changed.

C#
protected virtual void OnFilePathChanged()

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called when the file dialog is about to be opened.

C#
protected virtual void OnShowDialog()

Opens the file / folder dialog for choosing a file path.

C#
public void ShowDialog()

Events

Occurs when the file dialog is closed.

C#
public event EventHandler<WindowClosedEventArgs> DialogClosed

Occurs when the file dialog for is about to be opened.

C#
public event EventHandler<DialogOpeningEventArgs> DialogOpening

Occurs when a new valid file path is selected via file browser, via typing or via programmatic change of the property FilePath.

C#
public event EventHandler<FilePathChangedEventArgs> FilePathChanged

Occurs when a new file path is about to be selected. User can cancel it and / or override its ImageSource used for the file path icon.

C#
public event EventHandler<FilePathChangingEventArgs> FilePathChanging