Page 1 of 1

Layout cycle exception when designer placed in ScrollViewer

Posted: Thu Dec 22, 2011 8:49 am
by flip
Hello,
we try to use the silverlight designer in our product. Therefore we place the designer in a scrollviewer due to some other requirements of the windows in our app.
Placed in a scrollviewer, de designer gets some strange behaviour, and it gives an LayoutCycleException when the zoom of the Preview is changed.

Please see the attached image for the strange position of the tabs in the ribbon.

I created a video which shows the crash when zooming the preview panel. It shows a blank screen (and has some poor quality, sorry for that), but with the debugger attached it gives an LayoutCycleException.
System.Windows.LayoutCycleException: Layout cycle detected. Layout could not complete.
at TestApp.App.Application_UnhandledException(Object sender, ApplicationUnhandledExceptionEventArgs e)
at MS.Internal.Error.CallApplicationUEHandler(Exception e)
at MS.Internal.Error.CallAUEHandler(UInt32 hr, UInt32& bIsHandled)
check the video: http://www.mediafire.com/?u1kbpj1u07801or

I created a little sample project with which you can reproduce the issue:

I used the pre release binaries of Dec 15th.

Regards.

Layout cycle exception when designer placed in ScrollViewer

Posted: Fri Dec 23, 2011 3:26 am
by HighAley
Hello.
flip wrote:we try to use the silverlight designer in our product. Therefore we place the designer in a scrollviewer due to some other requirements of the windows in our app.
Placed in a scrollviewer, de designer gets some strange behaviour, and it gives an LayoutCycleException when the zoom of the Preview is changed.

Please see the attached image for the strange position of the tabs in the ribbon.

I created a video which shows the crash when zooming the preview panel. It shows a blank screen (and has some poor quality, sorry for that), but with the debugger attached it gives an LayoutCycleException.
System.Windows.LayoutCycleException: Layout cycle detected. Layout could not complete.
at TestApp.App.Application_UnhandledException(Object sender, ApplicationUnhandledExceptionEventArgs e)
at MS.Internal.Error.CallApplicationUEHandler(Exception e)
at MS.Internal.Error.CallAUEHandler(UInt32 hr, UInt32& bIsHandled)
check the video: http://www.mediafire.com/?u1kbpj1u07801or

I created a little sample project with which you can reproduce the issue:

I used the pre release binaries of Dec 15th.
You shouldn't put DesignerControl on ScrollViewer.

Please, don't upload registered assemblies on forum.

Thank you.

Layout cycle exception when designer placed in ScrollViewer

Posted: Fri Dec 23, 2011 3:36 am
by flip
Hello,

Ok, sorry for that, I will take care next time.
I will try to remove the scrollviewer.

Thanks!

Layout cycle exception when designer placed in ScrollViewer

Posted: Fri Dec 23, 2011 4:47 am
by HighAley
Hello.
flip wrote:Ok, sorry for that, I will take care next time.
I will try to remove the scrollviewer.
Waiting for your reply.

Thank you.

Layout cycle exception when designer placed in ScrollViewer

Posted: Fri Dec 23, 2011 6:10 am
by flip
Hello Aleksey,
When I remove the scrollviewer and place the designer directly onto the control, everything seems to work correct.

Thanks!

Layout cycle exception when designer placed in ScrollViewer

Posted: Fri Dec 23, 2011 6:24 am
by HighAley
Hello.
flip wrote:When I remove the scrollviewer and place the designer directly onto the control, everything seems to work correct.
We are always glad to help you.

Have a happy weekend!