<telerik:RadDropDownButton DropDownWidth="400" DropDownHeight="400" VerticalAlignment="Center" Content="Dialog Button"> <telerik:RadDropDownButton.DropDownContent> <dialogs:ExplorerControl Layout="Details"/> </telerik:RadDropDownButton.DropDownContent> </telerik:RadDropDownButton> When the DropDown is opened Exception in FileBrowserGridView.cs is thrown.
ExplorerControl is in DropDownContent of DropDownButton. Selecting multiple files in the explorer is not possible.
ExplorerControl or FileDialog is opened with StyleManager.ApplicationTheme = new Windows8TouchTheme(); On load exception is thrown: "Cannot find resource named 'BreadCrumbBarItemCustomStyle'. Resource names are case sensitive"
For example user might need to show files in FolderDialog or filter the folders somehow in all dialogs. Currently this could be achieved with custom style for OpenFolderDialogControl, binding the ListBox to CurrentParentDirectory.Children and use converter. By default this binding is to CurrentFileSystemObjects.
If you open a folder, but you doesn't select a child folder from the list shown in the explorer, when you click on the Open button the FileName property is empty. To work this around you can create a custom RadOpenFolderDialog and override its GetViewModel. Then expose a public property with the view model. And when you close the dialog, check the IsDirectirySelected property of the view model. If so, return the Path property of the view model. Otherwise, use the standard approach and get the folder via the dialog's FileName property. public class CustomOpenFolderDialog : RadOpenFolderDialog { public OpenFolderDialogViewModel ViewModel { get; internal set; } protected override OpenFolderDialogViewModel GetViewModel() { this.ViewModel = base.GetViewModel(); return this.ViewModel; } } --------------------------------- CustomOpenFolderDialog openFolderDialog = new CustomOpenFolderDialog(); openFolderDialog.Owner = this; openFolderDialog.ShowDialog(); if (openFolderDialog.DialogResult == true) { string folderName = String.Empty; if (!openFolderDialog.ViewModel.IsDirectorySelected) { folderName = openFolderDialog.ViewModel.Path; } else { folderName = openFolderDialog.FileName; } }
An exception is thrown when the ShowNetworkLocations property is set to false.
System.ArgumentNullException: Value cannot be null. (Parameter 'value') at System.String.StartsWith(String value) at Telerik.Windows.Controls.FileDialogs.Helpers.PathHelper.CapitalizeNetworkPath(String path) at Telerik.Windows.Controls.FileDialogs.ExplorerControl.BringItemIntoView(DirectoryBaseWrapper itemToBring) at Telerik.Windows.Controls.FileDialogs.ExplorerControl.BringCurrentDirIntoView() at Telerik.Windows.Controls.FileDialogs.ExplorerControl.MainNavigationPaneLoaded(Object sender, RoutedEventArgs e)
Hello.
I've created buttons that are bound to FileDialogCommands for sending commands to an ExplorerControl, as shown here:
https://docs.telerik.com/devtools/wpf/controls/radfiledialogs/features/commands
Everything works when the ExplorerControl is visible. However, if the ExplorerControl's Visibility is set to Collapsed (which I need based on a condition), the Command bindings on the buttons throw the below error:
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Windows.Controls.FileDialogs.ExplorerControl.CanExecuteHelper(Object sender)
The UserControl that hosts the ExplorerControl is being imported through MEF. I don't know if that's a factor.
Either way, it looks like a null check might be needed for the InternalViewModel property.
Open/Save File/Folder dialog with implicit styles. Change a theme dynamically by merging resource dictionary containing the styles for Office2016/ Office2016Touch / Fluent Theme. Show the dialog and open the details grid (view). XamlParseException occurs - cannot find the resource "GridViewValidationToolTipTemplate"