Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Close Button on VS11 Apps

I try to create an Application on Windows 8 with VS 11 with C#, And I need to a Button in my App that when people Click on this button , my App going to Close.

But I can't find any Exit or Close function to add, to my Click Event.

how can I make this button? or what is your proposal to solving this Problem?

like image 336
Mas Jamie Avatar asked Dec 02 '22 00:12

Mas Jamie


1 Answers

You shouldn't close your app.

This is one of the concepts of Metro apps.The user switches to a different task and the Process Lifetime Management aspects kick in, first suspending your application and then later, if needed, terminating it. Don't close the application's window: let the user know that there is no information currently available and then let them switch away, close, or wait as they'd prefer.

Took from here

like image 59
coder Avatar answered Dec 09 '22 10:12

coder