skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class OpenFileDialogViewModel

Provides a view model for setup and configuration of RadOpenFileDialog.

Inheritance
System.Object
ViewModelBase
DialogViewModel
FileDialogViewModel
OpenFileDialogViewModel
Inherited Members
FileDialogViewModel.GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)
FileDialogViewModel.FilterIndex
FileDialogViewModel.DefaultExt
FileDialogViewModel.Filter
FileDialogViewModel.IsFilterApplied
FileDialogViewModel.FilterDescriptors
FileDialogViewModel.SelectedFilterName
FileDialogViewModel.IsSearchActive
DialogViewModel.Dispose(Boolean)
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.InvokeSelectedFileSystemObjects()
DialogViewModel.OnSelectionChanged()
DialogViewModel.OnPropertyChanging(String)
DialogViewModel.ShouldCancelDiretoryNavigating(String)
DialogViewModel.InvokeContext
DialogViewModel.MainNavigationRoot
DialogViewModel.MainNavigationRootSource
DialogViewModel.EditingOptions
DialogViewModel.Path
DialogViewModel.Name
DialogViewModel.ShowHiddenFiles
DialogViewModel.InitialDirectory
DialogViewModel.CurrentParentDirectory
DialogViewModel.SelectedFileSystemObject
DialogViewModel.CurrentFileSystemObjects
DialogViewModel.RootAndCurrentFileSystemObjects
DialogViewModel.IsDirectorySelected
DialogViewModel.CustomPlaces
DialogViewModel.SelectedLayout
DialogViewModel.Layouts
DialogViewModel.IsMainPaneLoadingNetwork
DialogViewModel.SelectedFilesInvoker
DialogViewModel.FileSystemInfoWrapperFactory
DialogViewModel.CurrentSearchResults
DialogViewModel.IsSearchViewActive
DialogViewModel.DirectoryNavigating
DialogViewModel.PropertyChanging
ViewModelBase.Dispose()
ViewModelBase.InvokeOnUIThread(Action)
ViewModelBase.VerifyPropertyName(String)
ViewModelBase.PropertyChanged
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.FileDialogs
Assembly: Telerik.WinControls.UI.dll

Syntax

public class OpenFileDialogViewModel : FileDialogViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel, ICurrentDirectoryViewModel, INotifyPropertyChanging, IFileFilterableModel, IFileExtensionFilterable, IMultiSelectable

Constructors

OpenFileDialogViewModel(FileSystemInfoWrapperFactoryBase, Boolean, String)

Initializes a new instance of the OpenFileDialogViewModel class.

Declaration
public OpenFileDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
Parameters
FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory

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

System.Boolean showNetwork

Boolean indicating whether network locations are shown.

System.String rootDirPath

The path of the initial directory.

Properties

DereferenceLinks

Gets or sets a value indicating whether a file dialog returns either the location of the file referenced by a shortcut or the location of the shortcut file.

Declaration
public bool DereferenceLinks { get; set; }
Property Value
System.Boolean

MultiSelect

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

Declaration
public bool MultiSelect { get; set; }
Property Value
System.Boolean

Implements
IMultiSelectable.MultiSelect

ReadOnlyChecked

Gets or sets a value indicating whether the read-only check box is selected.

Declaration
public bool ReadOnlyChecked { get; set; }
Property Value
System.Boolean

SelectedFileSystemInfoWrappers

Gets a collection of selected FileSystemInfoWrappers.

Declaration
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<FileSystemInfoWrapper>

Implements
IMultiSelectable.SelectedFileSystemInfoWrappers

ShowReadOnly

Gets or sets a value indicating whether the dialog contains a read-only check box.

Declaration
public bool ShowReadOnly { get; set; }
Property Value
System.Boolean

Methods

CanExecuteAccept()

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

Declaration
protected override bool CanExecuteAccept()
Returns
System.Boolean

Overrides
DialogViewModel.CanExecuteAccept()

OnPropertyChanged(String)

Raises this object's PropertyChanged event.

Declaration
protected override void OnPropertyChanged(string propertyName)
Parameters
System.String propertyName

The property that has a new value.

Overrides
ViewModelBase.OnPropertyChanged(String)

ResetSelection()

Resets the selection.

Declaration
protected override void ResetSelection()
Overrides
DialogViewModel.ResetSelection()

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.