ArithmeticException is thrown on RadSaveFileDialog's ShowDialog call, when the device model profile of the OS (from the Color Management menu) is set to sRGB virtual device model profile.
The profile should be set through the Change system defaults menu. This setting is accessed by opening the Color Management menu in the OS, then select the Advanced tab, then click on Change system defaults... In the newly opened dialog click Advanced again and change the Device profile to sRGB virtual device model profile.
This is actually a bug in the WPF framework that is reported here.
The important part of the exception stacktrace is the following:
System.ArithmeticException: Overflow or underflow in the arithmetic operation. --- End of inner exception stack trace --- at System.Windows.Media.Imaging.ColorConvertedBitmap.FinalizeCreation() at System.Windows.Media.Imaging.ColorConvertedBitmap..ctor(BitmapSource source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format) at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette) at System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation() at System.Windows.Media.Imaging.BitmapFrameDecode..ctor(Int32 frameNumber, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapDecoder decoder) at System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames) at System.Windows.Media.Imaging.BitmapDecoder.get_Frames() at System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy) at System.Windows.Media.ImageSourceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue(IServiceProvider serviceProvider)
To reproduce this behavior you need the following settings.
- Set the display language of your Windows to Italian.
- Use a RadOpenFileDialog.
- Set its Filter. For example, you can filter to show only Excel files.
- Change the layout type to Details.
In this case the folders in the opened direction disappears.
Currently, the RadFileDialogs does not provide an API option for applying additional filtering of the already filtered files.
We could extend the filtering functionality of the RadFileDialogs control.
This is reproducible only with display language of the Windows set to a language different than English. It was originally reproduced with French.
If you set the initial directory to a network dir (ex: \\MyPcName\SharedFolder2\MyFiles), and open the dialog, initially the correct folder is loaded. However, if you wait several seconds without doing anything, the currently opened directory automatically changes to the root "Network" dir.
The error message appears after you do several operations with the dialog and then call the Directory.Move() method. The message is "Access to the path <path> is denied".
Can you please add the ability to select (and scroll into view) a file/folder in the RadFileDialog by keyboard? i.e. when focused within the files section of the dialog, typing 's' should scroll to the first file starting with 's' and select it.
All the Win32 and WPF file dialogs support this.
It would be nice to have some additional public properties and commands for ExplorerControl. For example:
Thanks for your consideration!
Expose an event that allows you to cancel the navigation to a folder. For example, if you enter an address in the breadcrumb, click the back button, or select a directory in the navigation tree, then you should be able to cancel the navigation.
This can be done via a new event that have a Cancel property in its arguments, for example.
The naming shown here is not mandatory.