Answered by:
Semantic zoom when zoomed in view is not a GridView or a ListView?

Question
-
I have a home screen that is basically a stack panel of 6 user controls that are all individual lists in slightly differant formats. It is clear that even with the way this data is presented a zoomed out view would be very applicable. Because I am using mutliple data sources in multiple view shapes I cannot use a GridView and hence I cannot put this inside a semantic zoom tag. Why do we have such a limitation and how can I get around it? Why can't semantic zoom just flip between two different views regardless of what they are?
- Edited by bccollin Wednesday, July 18, 2012 5:50 PM
Wednesday, July 18, 2012 5:49 PM
Answers
-
Actually, SemanticZoom does not restrict from using any UI control as long as it implements ISemanticZoomInformation interface. Out of box just two WinRT controls implement this interface – GridView and ListView – but you are able to create your own control and use it with SemanticZoom.
- Proposed as answer by Mark RideoutMicrosoft employee Wednesday, July 18, 2012 6:50 PM
- Marked as answer by Min ZhuMember Friday, August 10, 2012 9:45 AM
Wednesday, July 18, 2012 6:30 PM -
bcollin,
I implemented a custom Stackpanel with supports Sematic zoom. Please not that this is very basic implementation.http://blogs.msdn.com/b/going_metro/archive/2012/07/18/semantic-zoom-only-supports-gridview-and-listview.aspx
Hope this helps.
Thanks,
Shiva Vitakula.
If my suggestion answered your question, please consider marking it as the answer, inorder to benefit others in the forum.
- Proposed as answer by Bjorn Vdkerckhove Monday, July 23, 2012 10:59 AM
- Marked as answer by Min ZhuMember Friday, August 10, 2012 9:45 AM
Wednesday, July 18, 2012 9:47 PM
All replies
-
If we check the definition of "GridView" on http://msdn.microsoft.com/library/windows/apps/BR242705 , it says :-
So, in case if you would want your ItemsControl to have this functionality, then you can implement the "ISemanticZoomInformation" interface on it to add Zoom-in and Zoom-out functionality on custom controls.public class GridView : ListViewBase,ISemanticZoomInformation
-SagarWednesday, July 18, 2012 6:24 PM -
Actually, SemanticZoom does not restrict from using any UI control as long as it implements ISemanticZoomInformation interface. Out of box just two WinRT controls implement this interface – GridView and ListView – but you are able to create your own control and use it with SemanticZoom.
- Proposed as answer by Mark RideoutMicrosoft employee Wednesday, July 18, 2012 6:50 PM
- Marked as answer by Min ZhuMember Friday, August 10, 2012 9:45 AM
Wednesday, July 18, 2012 6:30 PM -
bcollin,
I implemented a custom Stackpanel with supports Sematic zoom. Please not that this is very basic implementation.http://blogs.msdn.com/b/going_metro/archive/2012/07/18/semantic-zoom-only-supports-gridview-and-listview.aspx
Hope this helps.
Thanks,
Shiva Vitakula.
If my suggestion answered your question, please consider marking it as the answer, inorder to benefit others in the forum.
- Proposed as answer by Bjorn Vdkerckhove Monday, July 23, 2012 10:59 AM
- Marked as answer by Min ZhuMember Friday, August 10, 2012 9:45 AM
Wednesday, July 18, 2012 9:47 PM