ClassFileDialogFormBase
Base class for file and folder dialogs.
Definition
Namespace:Telerik.WinControls.FileDialogs
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class FileDialogFormBase : RadForm, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider, IInvokeSelectedFileSystemObjects
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormRadFormControlBaseRadFormFileDialogFormBase
Derived Classes:
Implements:
Inherited Members
Properties
CustomPlaces
Gets or sets the collection of custom places.
Declaration
public IList<string> CustomPlaces { get; }
Property Value
IList<string>
DialogViewModel
Declaration
public DialogViewModel DialogViewModel { get; }
Property Value
EditingOptions
Determines how the files and folders in the ExplorerControl can be edited. Note that the shell context menu and drag and drop operations are handled separately.
Declaration
public EditingOptions EditingOptions { get; set; }
Property Value
ExpandToCurrentDirectory
Gets or sets a value indicating whether the main navigation pane expands and brings into view the current directory.
Declaration
public bool ExpandToCurrentDirectory { get; set; }
Property Value
ExplorerControl
Declaration
public virtual ExplorerControl ExplorerControl { get; }
Property Value
FileName
Gets or sets a string containing the selected file name.
FileSystemInfoWrapperFactory
Gets theFileSystemInfoWrapperFactoryBase for this FileDialogFormBase.
Declaration
protected FileSystemInfoWrapperFactoryBase FileSystemInfoWrapperFactory { get; }
Property Value
InitialDirectory
Gets or sets the initial directory.
InitialSelectedLayout
Gets or sets the initialLayoutType.
Declaration
public LayoutType InitialSelectedLayout { get; set; }
Property Value
RestoreDirectory
Gets or sets a value indicating whether the dialog box restores the directory to the previously selected directory before closing.
ShowHiddenFiles
Gets or sets a boolean value indicating whether hidden files and folders should be visible in the Dialog.
ShowNetworkLocations
Gets or sets a value indicating whether the dialog shows network computers in the navigation tree.
ViewModelChangedListeners
Declaration
public IList<IViewModelChangedListener> ViewModelChangedListeners { get; set; }
Property Value
IList<IViewModelChangedListener>
Methods
GetDialogViewModelCustomPlaces()
Provides the CustomPlaces as list of DirectoryInfoWrappers to the DialogViewModel of this FileDialogFormBase instance.
Declaration
protected virtual IList<DirectoryInfoWrapper> GetDialogViewModelCustomPlaces()
Returns
IList<DirectoryInfoWrapper>
GetDialogViewModelInitialDirectory()
Provides the InitialDirectory as DirectoryInfoWrapper to the DialogViewModel of this FileDialogFormBase instance. Returns null if DirectoryInfo cannot be created due to incorrect InitialDirectory string or access rights.
Declaration
protected virtual DirectoryInfoWrapper GetDialogViewModelInitialDirectory()
Returns
InvokeSelectedFileSystemObjects()
Declaration
public virtual void InvokeSelectedFileSystemObjects()
Implements
NotifyIViewModelChangedListeners()
Declaration
protected void NotifyIViewModelChangedListeners()
OnClosed(EventArgs)
Declaration
protected override void OnClosed(EventArgs e)
Parameters
e
Overrides
OnKeyDown(KeyEventArgs)
Called before the KeyDown event occurs.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
The data for the event.
Overrides
OnLoad(EventArgs)
Raises the Load event and applies any pending theming settings.
OnPressedCancel()
Declaration
protected virtual void OnPressedCancel()
OnThemeChanged()
Called when the theme has changed.
Declaration
protected override void OnThemeChanged()
Overrides
SaveStateOnAccept()
Save information from the OpenFileDialogViewModel into this FileDialogFormBase instance before the window is closed on Accept.
Declaration
protected virtual void SaveStateOnAccept()
SetupDialogContent(bool)
Declaration
protected virtual void SetupDialogContent(bool addWatcher = true)
Parameters
addWatcher
ShowDialog()
Opens modal Dialog in case it hasn't been already opened.
Declaration
public DialogResult ShowDialog()
Returns
The DialogResult value.
ShowDialog(IWin32Window)
Opens modal Dialog in case it hasn't been already opened.
Declaration
public DialogResult ShowDialog(IWin32Window owner)
Parameters
owner
Returns
The DialogResult value.
ShowDialogCore(IWin32Window, bool)
Show for testing purposes.
Declaration
protected virtual DialogResult ShowDialogCore(IWin32Window owner = null, bool addWatcher = true)
Parameters
owner
addWatcher
Returns
Events
DirectoryNavigating
Occurs when the current folder is about to change.
Declaration
public event EventHandler<DirectoryNavigatingEventArgs> DirectoryNavigating
Event Value
DirectoryRequesting
Occurs when the DirectoryInfo wrapper is about to be created.
Declaration
public event EventHandler<DirectoryRequestingEventArgs> DirectoryRequesting
Event Value
ExceptionRaised
Occurs when the Exception is raised.
Declaration
public event EventHandler<FileBrowserExceptionRaisedEventArgs> ExceptionRaised
Event Value
ShellContextMenuOpening
Occurs when context menu is about to open.
Declaration
public event EventHandler<ContextMenuOpeningEventArgs> ShellContextMenuOpening
Event Value