Answered by:
Always start as snapped view?

Question
-
Is there a way how to force a Metro style app to start as a snapped view / sidebar? I have not yet started with developing Windows 8 apps but I have an idea of an app I would like to make - the important thing is, that the app would be more like a "widget" which needs only a small portion of the screen...
Thank you.
Friday, December 9, 2011 3:38 PM
Answers
-
No, that is a user choice. Note that not all systems will even support snap view: the screen has to be wide enough. Even those which are wide enough in landscape mode probably won't be in portrait mode.
--Rob
- Marked as answer by Daniel_sk Friday, December 9, 2011 4:46 PM
Friday, December 9, 2011 4:22 PMModerator -
I would also like to move my app into the snap view once the user has opened a file from within my app using the launchProgram contract. But it seems this was a design choice to let only the user snap a program into snap view.
- Marked as answer by Jeff SandersMicrosoft employee, Moderator Friday, June 1, 2012 12:07 PM
Wednesday, May 30, 2012 12:42 PM
All replies
-
No, that is a user choice. Note that not all systems will even support snap view: the screen has to be wide enough. Even those which are wide enough in landscape mode probably won't be in portrait mode.
--Rob
- Marked as answer by Daniel_sk Friday, December 9, 2011 4:46 PM
Friday, December 9, 2011 4:22 PMModerator -
That's a shame because having a simple checklist app cover the whole screen by default on a big monitor seems wasteful...
Thanks for the reply.
Friday, December 9, 2011 4:48 PM -
... But the 'Search' App built into Windows Dev Preview is Snapped by default (and I'm pretty sure that is its only state.) It would be really cool if we had just a little more choice regarding what we can do with our new Apps :)
- Edited by J. Kent Sunday, December 11, 2011 2:54 AM
Sunday, December 11, 2011 2:53 AM -
Think of that style more like a dialog in the application. It is not a separate application. You can definitely do things like that in your application!
Jeff Sanders (MSFT)Monday, December 12, 2011 7:43 PMModerator -
I would also like to move my app into the snap view once the user has opened a file from within my app using the launchProgram contract. But it seems this was a design choice to let only the user snap a program into snap view.
- Marked as answer by Jeff SandersMicrosoft employee, Moderator Friday, June 1, 2012 12:07 PM
Wednesday, May 30, 2012 12:42 PM -
Try
VisualStateManager.GoToState(pageRoot, "Snapped", true);
This will load your snapped view, although it will fill the whole page!
public MyPage()
{
this.InitializeComponent();
this.Loaded += MyPage_Loaded;
}
void MyPage_Loaded(object sender, RoutedEventArgs e)
{
VisualStateManager.GoToState(pageRoot, "Snapped", true);
}
Thursday, June 14, 2012 4:07 PM