Hello,
I am facing some issues with the FileDialogs Controls in WPF:
When using the controls, none of their fields are recognized (for example, ExplorerControl
has no Filter
neither
Multiselect
member)
I created a simple WPF project with only the two following files, and added Assembly references to:
- Telerik.Windows.Controls
- Telerik.Windows.Controls.FileDialogs
- Telerik.Windows.Controls.GridView
- Telerik.Windows.Controls.Input
- Telerik:Windows.Controls.Navigation
- Telerik.Windows.Data
MainWindow.xaml:
<
Window
x:Class
=
"TelerikTest.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:fileDialogs
=
"clr-namespace:Telerik.Windows.Controls.FileDialogs;assembly=Telerik.Windows.Controls.FileDialogs"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
>
<
Grid
>
<
fileDialogs:ExplorerControl
x:Name
=
"explorer"
/>
</
Grid
>
</
Window
>
MainWindow.xaml.cs:
using
System.Windows;
using
System.Windows.Controls;
namespace
TelerikTest
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public
partial
class
MainWindow : Window
{
public
MainWindow()
{
InitializeComponent();
}
}
}
And when trying to run it, I get this exception:
System.ArgumentNullException: 'Value cannot be null. Parameter name: source'
This exception was originally thrown at this call stack:
System.Linq.Enumerable.OfType<TResult>(System.Collections.IEnumerable)
Telerik.Windows.Controls.FileDialogs.ExplorerControl.MainNavigationPaneLoaded(object, System.Windows.RoutedEventArgs)
System.Windows.RoutedEventHandlerInfo.InvokeHandler(object, System.Windows.RoutedEventArgs)
System.Windows.EventRoute.InvokeHandlersImpl(object, System.Windows.RoutedEventArgs, bool)
System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
System.Windows.BroadcastEventHelper.BroadcastEvent(System.Windows.DependencyObject, System.Windows.RoutedEvent)
System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(object)
MS.Internal.LoadedOrUnloadedOperation.DoWork()
System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
...
[Call Stack Truncated]
Thanks in advance for your reply
Note: I have no issue with direct call to FileDialog dialogs, the following code works:
new
RadOpenFileDialog().ShowDialog();