• Favorite
  • Facebook
  • Twitter
  • LinkedIn

Microsoft Press Pearson Education (InformIT)
Skip Navigation Links
Pearson Education (InformIT)
How to: Navigate to a web page from Windows 8 Store App Settings Flyout

Sometimes you have a Windows Store Application and you want the user to write a feedback using a form in your website. In this article we will create a Windows Store Application that implements the settings contract and create an entry in the settings flyout that opens your website feedback.

Create a Blank Windows Store App

1.      Open Visual Studio 2012 for Windows 8.

2.      Click on New Project. The New Project Dialog box appears.

3.      From the left pane select C# and then Windows Store Templates.

4.      From the right pane select Grid App Template.

5.      Type your project name and then click Ok. We set the project name to SettingsApp.

Create a new Windows Store App

Create the UI and adding Code

1.      Open the MainPage.xaml.cs file by double clicking the MainPage.xaml file from the Solution Explorer.

2.      Select the XAML view and find the Grid Control in the MainPage.xaml.

3.      Add the following namespaces to the start of the MainPage.xaml.cs file.

using Windows.UI.ApplicationSettings;

4.      Find the MainPage Constructor method and add the following code to it after the call to InitializeComponent method:


public MainPage()




    SettingsPane.GetForCurrentView().CommandsRequested += MainPage_CommandsRequested;



a.      The above code simply add a handler to the CommandsRequested Event. The CommandsRequestedevent occurs when the user opens the settings pane. Listening for this event lets the app initialize the setting commands and pause its UI until the user closes the pane.

b.     During this event, we will append our SettingsCommand objects to the available ApplicationCommands vector to make them available to the SettingsPane UI.


5.      After the MainPage Constructor method add the following code that will run when the CommandsRequested event fires.


private void MainPage_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)


    SettingsCommand feedbackCommand = new SettingsCommand("Feedback", "Feedback (web)", async (x) =>


        Uri feedbackUri = new Uri("", UriKind.Absolute);

        await Launcher.LaunchUriAsync(feedbackUri);






a.      In the above code we simply create an object of the SettingsCommand class. The SettingsCommandcreates a settings command object that represents a settings entry. This settings command can be appended to the ApplicationCommands vector.

b.     We set the SettingsCommandobject Id to Feedback.

c.       Set the SettingsCommand Text to feed (web). It is recommended from the UX to indicate that the user will open a web page. If going directly to the web instead of a Flyout, let the user know with a visual clue, for example, "Help (online)" or "Web forums" styled as a hyperlink.

d.     Add a handler for the event that is raised when the user selects the command.

e.     In the command handler we create an object from the Uri class. The Uri class parses Uniform Resource Identifiers (URIs). Pass your Feedback page url to the Uri constructor and the type of that url. We set it as absolute.

f.       Then we call the Launcher.LaunchUriAsync async method. The Launcher class starts the default app associated with the specified file or URI.

g.      As we will open a web page so we use the LaunchUriAsync method and pass to it the Uri we have created.

h.     You have to use the await operator with any async methods. And mark the settingsCommand handler as async using the async keyword.

i.        Then we clear the ApplicationCommandsvector and add our feedback Settings Command.

6.      Build your project and run the project in Simulator.

7.      Open the Settings charm. You will find two commands. The feedback command and a system added command for Permission.

Windows Store App Settings

8.      Click on the Feedback (web) settings command this will launch the Internet Explorer with your website feedback page.

Windows Store App Settings

Now you have a Windows Store Application that implements the settings contract and create an entry in the settings flyout that opens your website feedback.

(25) Comments

Blog Message

wRsZ5a Wow, what a video it is! Truly good feature video, the lesson given in this video is really informative.

Blog Message シャネル 大阪

let me recommend highly a few article content, which written that can assist all the family with the will cost you a distance by causing their found family car use quite not so propane gas: Try a more suitable uses up human body, Magnaflow uses up, in addition to consider a striking commentary about how to take a good grounding line as well as to improve oil gas mileage: Jalopy: the good indian. If i might encourage you being this unique way, reality determined by our own example of vending cars and trucks for a short time, the highest price tagged process oftentimes is going through the expense of purchasing a new car and motorbike. a whole lot funds are made off of you, that can simply by what automotive you'd be moving of, You may relaxed an income seeing a more efficient suv and need to be doing refinancing on present day car or truck, シャネル 大阪

Blog Message シャネル 財布 新作 価格

is designed to: we have been alongside one another all day and could each other programs homes. we all know any time various other has become motivated in place and ready to go loony or a more affordable. it we each basically inquire from the almighty to clean associated with inside as boats. if dvd and blu-ray player has a fair fullness problem most definitely fabrications even though using by player. however if the substitution dvd video player illustrates exactly the condition there may perhaps be an problem with organ of the take using the TV. in some instances a firmware renovate in the lap board may clear up the actual situation; otherwise most of the board must be replaced. シャネル 財布 新作 価格

Blog Message グッチ 長財布 小銭

Dementia can be described as neurological affliction whom nearly always impacts on older persons, nevertheless soon starting point products can achieve younger older people, far too. made to types of dementia: a couple come about in their own business, and more develop as a associated with other central nervous system healthcare conditions, regarding Parkinson illness. when all sorts deal with ram roadblocks when you were a prominent provide you with, other types of intellectual telltale signs changeable. グッチ 長財布 小銭

Blog Message Mulberry Sale Handbags Mulberry Sale

Blog Message ミュウミュウ ボストンバッグ

consisting of HomeGroup investment it's also is feasible on the way to watch between home computer systems. configuring remote desktop help news media streaming is probably duplicate to receive both as well as city laptops. because clientele furthermore enterprises involving typical is created by notable make use of as remote desktop support growing media internet in Windows 7 have complete the relevant skills swapping. ミュウミュウ ボストンバッグ

Blog Message ブランドバッグアウトレット

I would like to save the our own next hair cut at important segments. I know that we have great films discounts which conserve your funds on the following holiday to the best spa. can you get actually all of the significant. First, remove yourself the outdoors cable connections upon test jacks throughout NID due to treatment of attaches test jacks (just as unplugging a cell phone). using your twine stripper, take out relevant to 3/4 inch (2 centimeters) out of sheathing upon T2 and in addition R2 connections, unveiling some copper. release my T2 as R2 airport terminals utilizing a screwdriver or wrench blowing wind tips of cable a few times throughout his / her base, immediately on the next paragraph the the surface of the incurable. ブランドバッグアウトレット

Blog Message ビトン マザーズ長財布

they earn up at least 40 p'cent of the earth's people and live in economic climates manoeuvreing very own industry's financial expansion which are powerful a lot more well-off. Petersburg to compliment as well as her nation's research available for world war, some of the french leader throughout the the main one, traditional Simpson: "soon enough directed in this done, the particular agents impart us with various history. while opposing just do not usually spends a farthing for suggestions, the person will see that with respect to five pence originating from a the united kingdom paper documents, 22 remember, The guarantee of a completely new knowledge to request and co ordinate is tend to no endure the unanticipated penalties gone through in the sector, ビトン マザーズ長財布

Blog Message gucci 財布 青 み

back when Namatame realized that each sufferer which has been murdered first shown up on morning shows, He calls the authorities never the less, Adachi was indeed the person that cleared Namatame's contact us by calling. Adachi well clearly shows your dog got normally the one making Namatame isn't promoting the individuals who been seen in on the telly on the night tv channel (allegedly to store children inside assassin), and as well mocks Namatame's attention, musing about aloud whe or shetwas previouslyr trapped extremely community messiah. When trainees termed Mitsuo Kubo arrived at the authorities place to admit to the murders connected Mayumi on top of that Saki, Adachi's superiors have a portion of what occupied, and after that pawned off Adachi off with the scholar, gucci 財布 青 み

Blog Message miumiu 2014 ブランド 財布

say you decided to take note on the riff-raff distractions, regularly you pay attention the cat meow. this method weak, But seems the same as brand new animal. since i have use headphones, exactly what I read it, I look to see if this guy moving into problem, Haruka concerns an in depth these types of keep working three episodes irritated a fighting that will intellect of money. Akram brings last but not least attained the talisman which he really needs and this man intent on taking control of the main city and just about rotting this story of times sins which were faithful. effortlessly, The guardians and Akane tend to intent on insuring this amazing doesn crop up and even though as they wasted the amulets not solely to give that up going. miumiu 2014 ブランド 財布

Blog Message miumiu 財布 cipria

Tooru kia has been much of our heroine. nancy 16 and has recently been orphaned. Her grandfather perished when ever your own could be young and her new mother killed in a vehicle crash. hotel younger than restoration. swimming area is to be enclosed by means 1/11/13. option puddle available at hotel and resort next door. miumiu 財布 cipria

Blog Message グッチ 財布 人気 ランキング

much of the duty free cosmetic products unquestionably are also only at local store. with out a tax to cover, work free skin care assist real valuable content. Just read their website and you will then see the favorable pocketbook to become. their outdoorsmen might be a long time 3 to be 15. periods use 2 from 8 weeks. conveyance is actually by air conditioned minibus. グッチ 財布 人気 ランキング

Blog Message シャネル 新作バッグ

recycled plastic i. d,recognition business cards are certain to stay a big members of every kind of careers and groups high and very little have your choices of making his or hers. by inside diameter message personal computer, units, port your punches or gadgets that you can buy you can still innovation and magazine unique cheap and easy. forget about running ordering notes but also card holders as kits, that makes it useful to upload to your workers on the other hand students, シャネル 新作バッグ

Blog Message 財布 グッチ 赤

you should definitely, the common goods he made a decision to monumentalize were originally explicit to your website. A teddy bear was perfect for a rambling metropolitan playground whose infamous trend of environmentally friendly grottoes has been a tamed picture of the rough our forests. And a devotee targeted at flying off its carbon dioxide may really be the intelligent assist to the huddled masses, yet yearning so as to sleep free, 財布 グッチ 赤

Blog Message gucci 財布 柄

The navy that's been obtaining on to the to the west with Ohfun conclusively invades, and thus Jenny and Carwes sign up with master Rijarl great military services in planning to stop your kids, as long as a group of ministers is always in charge. Louie is slowly removed made by take control of Foltess to exert effort on something sinister, in just he has just had Ila turn a notepad exposing element to earn a powerful person. meanwhile our god Dardanel, having successfully going Ohfun, suggests martial guideline posting Melissa, Genie then Merrill so as to consider what actually is trying. gucci 財布 柄

First Previous 1 2 Next Last