venerdì 9 dicembre 2011 15:38
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...
Tutte le risposte
venerdì 9 dicembre 2011 16:22Moderatore
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.
- Contrassegnato come risposta Daniel_sk venerdì 9 dicembre 2011 16:46
venerdì 9 dicembre 2011 16:48
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.
domenica 11 dicembre 2011 02:53... 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 :)
- Modificato J. Kent domenica 11 dicembre 2011 02:54
lunedì 12 dicembre 2011 19:43ModeratoreThink 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)
mercoledì 30 maggio 2012 12:42I 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.
- Contrassegnato come risposta Jeff SandersMicrosoft Employee, Moderator venerdì 1 giugno 2012 12:07
giovedì 14 giugno 2012 16:07Try
VisualStateManager.GoToState(pageRoot, "Snapped", true);
This will load your snapped view, although it will fill the whole page!
this.Loaded += MyPage_Loaded;
void MyPage_Loaded(object sender, RoutedEventArgs e)