Class
RadFilePathPicker

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:

cs-api-definition
[TelerikToolboxCategory("File Dialogs")]
public class RadFilePathPicker : Control

Inheritance: objectRadFilePathPicker

Constructors

RadFilePathPicker()

Initializes a new instance of the RadFilePathPicker class.

Declaration

cs-api-definition
public RadFilePathPicker()

Fields

ClearButtonContentProperty

Identifies the ClearButtonContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ClearButtonContentProperty

Field Value

DependencyProperty

ClearButtonTemplateProperty

Identifies the ClearButtonTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ClearButtonTemplateProperty

Field Value

DependencyProperty

DialogTypeProperty

Initializes the DialogType property.

Declaration

cs-api-definition
public static readonly DependencyProperty DialogTypeProperty

Field Value

DependencyProperty

EditorVisibilityProperty

Identifies the EditorVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EditorVisibilityProperty

Field Value

DependencyProperty

FilePathChangedEvent

Registers the FilePathChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent FilePathChangedEvent

Field Value

RoutedEvent

FilePathChangingEvent

Registers the FilePathChanging routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent FilePathChangingEvent

Field Value

RoutedEvent

FilePathProperty

Initializes the FilePath property.

Declaration

cs-api-definition
public static readonly DependencyProperty FilePathProperty

Field Value

DependencyProperty

IconTemplateSelectorProperty

Identifies the IconTemplateSelector dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IconTemplateSelectorProperty

Field Value

DependencyProperty

IconVisibilityProperty

Identifies the IconVisibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IconVisibilityProperty

Field Value

DependencyProperty

IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsReadOnlyProperty

Field Value

DependencyProperty

ShowDialogButtonContentProperty

Identifies the ShowDialogButtonContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowDialogButtonContentProperty

Field Value

DependencyProperty

ShowDialogButtonTemplateProperty

Identifies the ShowDialogButtonTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowDialogButtonTemplateProperty

Field Value

DependencyProperty

TextProperty

Identifies the Text dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TextProperty

Field Value

DependencyProperty

WatermarkContentProperty

Identifies the WatermarkContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty WatermarkContentProperty

Field Value

DependencyProperty

WatermarkTemplateProperty

Identifies the WatermarkTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty WatermarkTemplateProperty

Field Value

DependencyProperty

Properties

ClearButtonContent

Gets or sets the content of the clear button.

Declaration

cs-api-definition
public object ClearButtonContent { get; set; }

Property Value

object

ClearButtonTemplate

Gets or sets the content template of the clear button.

Declaration

cs-api-definition
public DataTemplate ClearButtonTemplate { get; set; }

Property Value

DataTemplate

DialogType

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

Declaration

cs-api-definition
public DialogType DialogType { get; set; }

Property Value

DialogType

EditorVisibility

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

Declaration

cs-api-definition
public Visibility EditorVisibility { get; set; }

Property Value

Visibility

FilePath

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

Declaration

cs-api-definition
public string FilePath { get; set; }

Property Value

string

IconTemplateSelector

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

Declaration

cs-api-definition
public DataTemplateSelector IconTemplateSelector { get; set; }

Property Value

DataTemplateSelector

IconVisibility

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

Declaration

cs-api-definition
public Visibility IconVisibility { get; set; }

Property Value

Visibility

IsReadOnly

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

Declaration

cs-api-definition
public bool IsReadOnly { get; set; }

Property Value

bool

ShowDialogButtonContent

Gets or sets the content of the show dialog button.

Declaration

cs-api-definition
public object ShowDialogButtonContent { get; set; }

Property Value

object

ShowDialogButtonTemplate

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

Declaration

cs-api-definition
public DataTemplate ShowDialogButtonTemplate { get; set; }

Property Value

DataTemplate

Text

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.

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string

WatermarkContent

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

Declaration

cs-api-definition
public object WatermarkContent { get; set; }

Property Value

object

WatermarkTemplate

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

Declaration

cs-api-definition
public DataTemplate WatermarkTemplate { get; set; }

Property Value

DataTemplate

Methods

OnApplyTemplate()

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnFilePathChanged()

Called when FilePath property is changed.

Declaration

cs-api-definition
protected virtual void OnFilePathChanged()

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnShowDialog()

Called when the file dialog is about to be opened.

Declaration

cs-api-definition
protected virtual void OnShowDialog()

ShowDialog()

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

Declaration

cs-api-definition
public void ShowDialog()

Events

DialogClosed

Occurs when the file dialog is closed.

Declaration

cs-api-definition
public event EventHandler<WindowClosedEventArgs> DialogClosed

Event Value

EventHandler<WindowClosedEventArgs>

DialogOpening

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

Declaration

cs-api-definition
public event EventHandler<DialogOpeningEventArgs> DialogOpening

Event Value

EventHandler<DialogOpeningEventArgs>

FilePathChanged

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

Declaration

cs-api-definition
public event EventHandler<FilePathChangedEventArgs> FilePathChanged

Event Value

EventHandler<FilePathChangedEventArgs>

FilePathChanging

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.

Declaration

cs-api-definition
public event EventHandler<FilePathChangingEventArgs> FilePathChanging

Event Value

EventHandler<FilePathChangingEventArgs>