Hello,
consider the following xaml:
<telerik:RadDateTimePicker SelectionChanged="RadDateTimePicker_OnSelectionChanged" />
In the code-behind, there's this:
private void RadDateTimePicker_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
throw new Exception("Exception!");
}
Even if you add event handlers to the necessary events in App.xaml.cs (DispatcherUnhandledException and AppDomain.CurrentDomain.UnhandledException), these will never be triggered.
Do the same with a normal Button and the events will fire.
Is RadDateTimePicker(.SelectionChanged) swallowing these exceptions?
My application is a little more complex (with MVVM and a Command), but it boils down to that. So is there any way of catching these exceptions too? I want a general exception handler in my App.xaml.cs for any non-specific cases I didn't (or chose not to) handle. It would be cumbersome if I'd have to add try-catches for every command that's fired by a RadDateTimePicker (and a leaking of knowledge about the UI in my ViewModel).
consider the following xaml:
<telerik:RadDateTimePicker SelectionChanged="RadDateTimePicker_OnSelectionChanged" />
In the code-behind, there's this:
private void RadDateTimePicker_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
throw new Exception("Exception!");
}
Even if you add event handlers to the necessary events in App.xaml.cs (DispatcherUnhandledException and AppDomain.CurrentDomain.UnhandledException), these will never be triggered.
Do the same with a normal Button and the events will fire.
Is RadDateTimePicker(.SelectionChanged) swallowing these exceptions?
My application is a little more complex (with MVVM and a Command), but it boils down to that. So is there any way of catching these exceptions too? I want a general exception handler in my App.xaml.cs for any non-specific cases I didn't (or chose not to) handle. It would be cumbersome if I'd have to add try-catches for every command that's fired by a RadDateTimePicker (and a leaking of knowledge about the UI in my ViewModel).