Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Window > Layout Cycle Detected

Not answered Layout Cycle Detected

Feed from this thread
  • Posted on Nov 25, 2011 (permalink)

    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:
    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?

    Reply

  • Posted on Nov 29, 2011 (permalink)

    Anyone?

    Reply

  • George George admin's avatar

    Posted on Nov 30, 2011 (permalink)

    Hi Digitall,

    I tried to reproduce the problem, but to no avail. Could you please try out the attached project and let me know if I missed something? I am glad to assist you further.

    Regards,
    George
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Window > Layout Cycle Detected
Related resources for "Layout Cycle Detected"

Silverlight Window Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]