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