ClassRadFilePathPicker
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:
[TelerikToolboxCategory("File Dialogs")]
public class RadFilePathPicker : Control
Inheritance: objectRadFilePathPicker
Constructors
RadFilePathPicker()
Initializes a new instance of the RadFilePathPicker class.
Declaration
public RadFilePathPicker()
Fields
ClearButtonContentProperty
Identifies the ClearButtonContent dependency property.
Declaration
public static readonly DependencyProperty ClearButtonContentProperty
Field Value
DependencyProperty
ClearButtonTemplateProperty
Identifies the ClearButtonTemplate dependency property.
Declaration
public static readonly DependencyProperty ClearButtonTemplateProperty
Field Value
DependencyProperty
DialogTypeProperty
Initializes the DialogType property.
Declaration
public static readonly DependencyProperty DialogTypeProperty
Field Value
DependencyProperty
EditorVisibilityProperty
Identifies the EditorVisibility dependency property.
Declaration
public static readonly DependencyProperty EditorVisibilityProperty
Field Value
DependencyProperty
FilePathChangedEvent
Registers the FilePathChanged routed event.
Declaration
public static readonly RoutedEvent FilePathChangedEvent
Field Value
RoutedEvent
FilePathChangingEvent
Registers the FilePathChanging routed event.
Declaration
public static readonly RoutedEvent FilePathChangingEvent
Field Value
RoutedEvent
FilePathProperty
Initializes the FilePath property.
Declaration
public static readonly DependencyProperty FilePathProperty
Field Value
DependencyProperty
IconTemplateSelectorProperty
Identifies the IconTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty IconTemplateSelectorProperty
Field Value
DependencyProperty
IconVisibilityProperty
Identifies the IconVisibility dependency property.
Declaration
public static readonly DependencyProperty IconVisibilityProperty
Field Value
DependencyProperty
IsReadOnlyProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
DependencyProperty
ShowDialogButtonContentProperty
Identifies the ShowDialogButtonContent dependency property.
Declaration
public static readonly DependencyProperty ShowDialogButtonContentProperty
Field Value
DependencyProperty
ShowDialogButtonTemplateProperty
Identifies the ShowDialogButtonTemplate dependency property.
Declaration
public static readonly DependencyProperty ShowDialogButtonTemplateProperty
Field Value
DependencyProperty
TextProperty
Identifies the Text dependency property.
Declaration
public static readonly DependencyProperty TextProperty
Field Value
DependencyProperty
WatermarkContentProperty
Identifies the WatermarkContent dependency property.
Declaration
public static readonly DependencyProperty WatermarkContentProperty
Field Value
DependencyProperty
WatermarkTemplateProperty
Identifies the WatermarkTemplate dependency property.
Declaration
public static readonly DependencyProperty WatermarkTemplateProperty
Field Value
DependencyProperty
Properties
ClearButtonContent
Gets or sets the content of the clear button.
ClearButtonTemplate
Gets or sets the content template of the clear button.
Declaration
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.
EditorVisibility
Gets or sets a value indicating the visibility of the watermark textbox.
Declaration
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.
IconTemplateSelector
Gets or sets the DataTemplateSelector which chooses icon template based on the given FilePath.
Declaration
public DataTemplateSelector IconTemplateSelector { get; set; }
Property Value
DataTemplateSelector
IconVisibility
Gets or sets a value indicating the visibility of the file path icon.
Declaration
public Visibility IconVisibility { get; set; }
Property Value
Visibility
IsReadOnly
Gets or sets a value indicating whether the watermark textbox is in read-only mode.
ShowDialogButtonContent
Gets or sets the content of the show dialog button.
Declaration
public object ShowDialogButtonContent { get; set; }
Property Value
ShowDialogButtonTemplate
Gets or sets the content template of the show dialog button.
Declaration
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.
WatermarkContent
Gets or sets the content to be shown when the TextBox is empty and not focused.
WatermarkTemplate
Gets or sets the template for presenting the content, shown when the TextBox is empty and not focused.
Declaration
public DataTemplate WatermarkTemplate { get; set; }
Property Value
DataTemplate
Methods
OnApplyTemplate()
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
OnFilePathChanged()
Called when FilePath property is changed.
Declaration
protected virtual void OnFilePathChanged()
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnShowDialog()
Called when the file dialog is about to be opened.
Declaration
protected virtual void OnShowDialog()
ShowDialog()
Opens the file / folder dialog for choosing a file path.
Declaration
public void ShowDialog()
Events
DialogClosed
Occurs when the file dialog is closed.
Declaration
public event EventHandler<WindowClosedEventArgs> DialogClosed
Event Value
DialogOpening
Occurs when the file dialog for is about to be opened.
Declaration
public event EventHandler<DialogOpeningEventArgs> DialogOpening
Event Value
FilePathChanged
Occurs when a new valid file path is selected via file browser, via typing or via programmatic change of the property FilePath.
Declaration
public event EventHandler<FilePathChangedEventArgs> FilePathChanged
Event Value
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
public event EventHandler<FilePathChangingEventArgs> FilePathChanging
Event Value