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:
No comments:
Post a Comment