I am constructing a small demo for my employeer, as we are considering to purchase a license for the Silverlight controls.
This code is using the latest binaries (Trial version).
XAML:
<Canvas x:Name="WindowSpace">
<telerikNavigation:RadWindow x:Name="MyWin">
<ListBox x:Name="MyListBox" Width="300" Height="200"></ListBox>
</telerikNavigation:RadWindow>
</Canvas>
C#:
MyListBox.Items.Add("First");
MyListBox.Items.Add("Second");
MyListBox.MouseLeftButtonDown += delegate
{
Telerik.Windows.Controls.RadWindow.Alert("Test");
};
MyWin.Show();
Result::
Uncaught Sys.InvalidOperationException: Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control 'Xaml1': System.Exception: Oåterkalleligt fel (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
And a blank screen in Google chrome.
The problem is associated with the events "SelectionChanged" and "MouseLeftButtonDown".
If I use "MouseEnter" instead, it works.
I found this thread http://www.telerik.com/community/forums/silverlight/window/select-listbox-content-inside-radwindow-catastrophic-failure.aspx
But apparantely the problem was that "noticing that you are trying to use the RadWindow control as a UserControl".
That is not the case here. The XAML above is within Page.xaml. This was the simplest possible application I could make to raise the error. What is the work around? Is this fixed in the "full version"?