This question is locked. New answers and comments are not allowed.
I just upgraded to the latest Q3 2011 bits and in trying to utilize a RadWindow I get the following error:
{System.Windows.LayoutCycleException: Layout cycle detected. Layout could not complete.
at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
at System.Windows.UIElement.UpdateLayout()
at Telerik.Windows.Controls.RadComboBox.NavigateToItem(Object item)
at Telerik.Windows.Controls.RadComboBox.OnSelectionChanged(SelectionChangedEventArgs e)
at Telerik.Windows.Controls.RadComboBox.SelectItemDelayedSelectionChanged(Object item)
at Telerik.Windows.Controls.RadComboBox.NotifyComboBoxItemMouseUp(RadComboBoxItem comboBoxItem)
at Telerik.Windows.Controls.RadComboBoxItem.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)}
The code to reproduce this error was taken directly from the demo site since my original version was getting the error. It is:
I upgraded to the Q3 bits because I was getting this error (same code) with Q2 as well.
Any ideas?
{System.Windows.LayoutCycleException: Layout cycle detected. Layout could not complete.
at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
at System.Windows.UIElement.UpdateLayout()
at Telerik.Windows.Controls.RadComboBox.NavigateToItem(Object item)
at Telerik.Windows.Controls.RadComboBox.OnSelectionChanged(SelectionChangedEventArgs e)
at Telerik.Windows.Controls.RadComboBox.SelectItemDelayedSelectionChanged(Object item)
at Telerik.Windows.Controls.RadComboBox.NotifyComboBoxItemMouseUp(RadComboBoxItem comboBoxItem)
at Telerik.Windows.Controls.RadComboBoxItem.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)}
The code to reproduce this error was taken directly from the demo site since my original version was getting the error. It is:
string
alertText =
"The employee photo has been uploaded."
;
RadWindow.Alert(alertText,
new
EventHandler<WindowClosedEventArgs>(OnClosed));
private
void
OnClosed(
object
sender, WindowClosedEventArgs e)
{
RadWindow.Alert(String.Format(
"DialogResult: {0}, PromptResult: {1}"
, e.DialogResult, e.PromptResult));
}
I upgraded to the Q3 bits because I was getting this error (same code) with Q2 as well.
Any ideas?