I'm developing my first Windows 8 modern app and I seem to have difficulty finding the correct documentation for making app bar buttons that aren't like the default ones.
What I'm trying to do is something like the app bar in Microsoft Solitaire Collection, like this: http://www.windows8core.com/wp-content/uploads/2012/08/2b1.png
There's three things to notice:
I've started off by using <button>
, since semantically they are buttons, and it seems that only <button>
and <hr>
belong in the app bar.
Do I set the parameters in the data-win-options
attributes or is it something done in the JavaScript?
I am using JavaScript/HTML5, not C++/C#/VB. Here are the MSDN articles I've read regarding the app bar.
If this is an upper AppBar, which is typically used for navigation, you can actually provide a custom UI by specifying the "layout" property in data-win-options, with the value "custom", as discussed here.
You may also want to read up on styling app bars.
Last, but not least, check out the HTML AppBar control sample, which illustrates the use of custom layout, among other things.
For more info on Windows Store app development, register for Generation App.