Friday 8 February 2013

PivotViewer bug

image

If you unload the Silverlight PivotViewer control from Visual Tree whilst it’s in the middle of loading items or an animation such as filtering or resizing, by for example changing the page in a navigation frame Silverlight crashes (see screenshot above).

The same behaviour occurs when the PivotViewer is used within the TabControl (from the Silverlight Toolkit), changing from the PivotViewer in a selected tab exhibits the same behaviour.

PivotViewer Crash Frame Demo:       https://github.com/stevenh77/PivotViewerCrashDemo

PivotViewer Crash TabControl Demo:     https://github.com/stevenh77/PivotViewerCrashTabDemo

If I rework the example and replace the frame/tab control with buttons that show/hide (visible/collapse) each of the pages then no error is thrown.

PivotViewer Working Demo:   https://github.com/stevenh77/PivotViewerWorkingDemo

Dear Microsoft, can we have a fix for the pivot viewer?

This bug has been reported to Microsoft Connect: https://connect.microsoft.com/VisualStudio/feedback/details/778981/silverlight-5-pivot-viewer-crashes-silverlight-when-removed-from-visual-tree

and also on the Silverlight forum:

http://social.msdn.microsoft.com/Forums/en-US/silverlightbugs/thread/74ba1a3e-96db-4225-852b-6b33e4e5d951

No comments:

Post a Comment