Class
OpenFolderDialogViewModel

Provides a view model for setup and configuration of RadOpenFolderDialog.

Definition

Namespace:Telerik.WinControls.FileDialogs

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class OpenFolderDialogViewModel : DialogViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel, ICurrentDirectoryViewModel, INotifyPropertyChanging, IMultiSelectable

Inheritance: objectViewModelBaseDialogViewModelOpenFolderDialogViewModel

Implements: ICurrentDirectoryViewModelIDialogViewModelIDisposableIMultiSelectableINotifyPropertyChangedINotifyPropertyChanging

Inherited Members DialogViewModel.Dispose(bool)DialogViewModel.OnCurrentSearchResultsChanged()DialogViewModel.CreateNewChildFolder()DialogViewModel.CanEditExecute()DialogViewModel.OnEditExecuted()DialogViewModel.CanNewFolderExecute()DialogViewModel.OnNewFolderExecuted()DialogViewModel.CanCopyExecute()DialogViewModel.OnCopyCommand(IntPtr)DialogViewModel.CanCutExecute()DialogViewModel.OnCutCommand(IntPtr)DialogViewModel.CanPasteExecute()DialogViewModel.OnPasteCommand(IntPtr)DialogViewModel.CanDeleteExecute()DialogViewModel.OnDeleteCommand(IntPtr)DialogViewModel.CanExecuteHelper()DialogViewModel.PrepareCommandAndExecute(IntPtr, ShellContextMenuCommand)DialogViewModel.OnSelectionChanged()DialogViewModel.ShouldCancelDiretoryNavigating(string)DialogViewModel.InvokeContextDialogViewModel.MainNavigationRootDialogViewModel.MainNavigationRootSourceDialogViewModel.EditingOptionsDialogViewModel.PathDialogViewModel.NameDialogViewModel.ShowHiddenFilesDialogViewModel.InitialDirectoryDialogViewModel.CurrentParentDirectoryDialogViewModel.SelectedFileSystemObjectDialogViewModel.CurrentFileSystemObjectsDialogViewModel.RootAndCurrentFileSystemObjectsDialogViewModel.IsDirectorySelectedDialogViewModel.CustomPlacesDialogViewModel.SelectedLayoutDialogViewModel.LayoutsDialogViewModel.IsMainPaneLoadingNetworkDialogViewModel.SelectedFilesInvokerDialogViewModel.FileSystemInfoWrapperFactoryDialogViewModel.CurrentSearchResultsDialogViewModel.IsSearchViewActiveDialogViewModel.DirectoryNavigatingDialogViewModel.PropertyChangingViewModelBase.Dispose()ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.VerifyPropertyName(string)ViewModelBase.PropertyChanged

Constructors

OpenFolderDialogViewModel(FileSystemInfoWrapperFactoryBase, bool, string)

Initializes a new instance of the OpenFolderDialogViewModel class.

Declaration

cs-api-definition
public OpenFolderDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")

Parameters

fileSystemInfoWrapperFactory

FileSystemInfoWrapperFactoryBase

The factory used from this OpenFolderDialogViewModel for creation of file system wrappers.

showNetwork

bool

Boolean indicating whether network locations are shown.

rootDirPath

string

The path of the initial directory.

Properties

MultiSelect

Gets or sets a value indicating whether multiple selection of files or folders is allowed.

Declaration

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

Property Value

bool

Implements IMultiSelectable.MultiSelect

SelectedFileSystemInfoWrappers

Gets a collection of selected FileSystemInfoWrappers.

Declaration

cs-api-definition
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }

Property Value

ObservableCollection<FileSystemInfoWrapper>

Implements IMultiSelectable.SelectedFileSystemInfoWrappers

Methods

CanExecuteAccept()

Defines the method that determines whether the accept command can execute in its current state.

Declaration

cs-api-definition
protected override bool CanExecuteAccept()

Returns

bool

Overrides DialogViewModel.CanExecuteAccept()

GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)

Gets the current visible FileSystemInfoWrappers.

Declaration

cs-api-definition
protected override IEnumerable<FileSystemInfoWrapper> GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper parent)

Parameters

parent

DirectoryBaseWrapper

Returns

IEnumerable<FileSystemInfoWrapper>

Overrides DialogViewModel.GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)

InvokeSelectedFileSystemObjects()

Execute logic when accept is executed for the selected FileSystemInfoWrappers.

Declaration

cs-api-definition
protected override void InvokeSelectedFileSystemObjects()

Overrides DialogViewModel.InvokeSelectedFileSystemObjects()

OnPropertyChanged(string)

Raises this object's PropertyChanged event.

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

The property that has a new value.

Overrides ViewModelBase.OnPropertyChanged(string)

OnPropertyChanging(string)

Declaration

cs-api-definition
protected override void OnPropertyChanging(string propertyName)

Parameters

propertyName

string

Overrides DialogViewModel.OnPropertyChanging(string)

ResetSelection()

Resets the selection.

Declaration

cs-api-definition
protected override void ResetSelection()

Overrides DialogViewModel.ResetSelection()