I'm getting spurious exceptions when opening this dialog.
var dialog = new Telerik.Windows.Controls.RadOpenFolderDialog
{
Header = "Import Fonts",
FileName = Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
RestoreDirectory = true,
InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
Multiselect = true
};
if (dialog.ShowDialog() ?? false)
{
eventAggregator.GetEvent<ImportEvent>().Publish(dialog.FileNames);
}
2018-10-30 16:26:23,708 [1] ERROR FontAgent.App System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Windows.Controls.ItemContainerGenerator.RealizedItemBlock.ContainerAt(Int32 index)
at System.Windows.Controls.ItemContainerGenerator.ContainerFromIndex(Int32 index)
at Telerik.Windows.Controls.FileDialogs.HistoryNavigationPaneControl.UpdateSelectedHistoryDirectory(Boolean navigateToCurrentDir)
at Telerik.Windows.Controls.FileDialogs.HistoryNavigationPaneControl.FileSystemInfoWrapperFactory_ChildFileDeleted(Object sender, ChildFileDeletedEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Telerik.Windows.Controls.FileDialogs.FileSystemInfoWrapperFactoryBase.OnChildFileDeleted(String filePath, DirectoryInfoWrapper parentFolderPath, Boolean isRename)
at Telerik.Windows.Controls.FileDialogs.FileSystemInfoWrapperFactory.CleanupPath(String filePath, DirectoryInfoWrapper parentWrapper, Boolean isRename)
at Telerik.Windows.Controls.FileDialogs.DirectoryInfoWrapper.<>c__DisplayClass3.<OnFileChanged>b__2()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Any idea what's going on? Thanks.