codefoster | Implementing the Settings Contract
Jeremy Foster
@codefoster

Implementing the Settings Contract

by Jeremy Foster 27. August 2012 15:48

I presented at a developer camp in Redmond recently on the subject of implementing Windows 8 contracts. You can find the video on Channel 9. Unfortunately, I didn’t have enough time to cover the implementation of the Settings contract, so I want to cover that now in the attached screencast.

The Settings contract is an important one, since almost every app known to mankind has some user preferences or options to store. In previous Windows development, the convention was to put options like this into the Tools | Options menu item, but there are plenty of examples of apps that chose to find another place for it.

In Windows 8, the sanctioned place to put your user’s settings is in the Settings pane. This is the pane the user gets when he does one of the following…

  • swipes from the right to access the Charms and then chooses the Settings charm
  • presses Win + I

The Settings place should hold things like…

  • account management (login/logout)
  • preferences
  • app version information
  • help
  • and so on

The pane is divided into settings that you (the developer) have control over and those that you do not. Everything below the horizontal line is system level and unavailable for change. Above the line, the Permissions entry is owned by Windows, but you are responsible for any more. Your settings entries might be: Settings, Help, About, Permissions, or they might be Account Control, Sound Settings, Video Settings, Permissions.

I hope the included screencast helps you ramp up quickly on how to do this in HTML/JS. If you have any questions, leave a comment. Thanks.

Implement the Settings Contract (WMV, ~71MB)

Tags:

CSS | HTML | JavaScript | Windows 8

Comments (2) -

Ayush Singhal
Ayush Singhal United States
11/8/2012 11:45:59 AM #

How can I show settings -> permissions flyout on button click?

Reply

Jeremy Foster
Jeremy Foster United States
11/12/2012 9:42:28 AM #

Good question. I know how to show the settings flyouts that I create, but I'd have to do some Binging see if it's possible to show the Permissions flyout.

Reply

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Feed Subscribe