Layout cycle exception when designer placed in ScrollViewer

Stimulsoft Reports.Silverlight discussion
Locked
flip
Posts: 23
Joined: Mon Dec 12, 2011 10:47 am

Layout cycle exception when designer placed in ScrollViewer

Post 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.
Attachments
1524.screen_tabs.png
1524.screen_tabs.png (197.15 KiB) Viewed 6229 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Layout cycle exception when designer placed in ScrollViewer

Post 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.
flip
Posts: 23
Joined: Mon Dec 12, 2011 10:47 am

Layout cycle exception when designer placed in ScrollViewer

Post by flip »

Hello,

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

Thanks!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Layout cycle exception when designer placed in ScrollViewer

Post 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.
flip
Posts: 23
Joined: Mon Dec 12, 2011 10:47 am

Layout cycle exception when designer placed in ScrollViewer

Post by flip »

Hello Aleksey,
When I remove the scrollviewer and place the designer directly onto the control, everything seems to work correct.

Thanks!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Layout cycle exception when designer placed in ScrollViewer

Post 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!
Locked