locked
Custom app bar? RRS feed

  • Question

  • I'm interested in making an app bar similar to the one in Bing News. I don't know how they got the controls on two lines. I tried using a br tag, but it throws an error. I can only put buttons and menu commands on it. Any ideas?

    Thanks in advance!

    Monday, December 3, 2012 5:48 PM

Answers

  • To be able to use any controls, you need to set the layout to custom.

    <div data-win-control="WinJS.UI.AppBar" data-win-options="{layout:'custom',placement:'bottom'}">
    </div>

    • Marked as answer by DallasNChains Monday, December 3, 2012 11:07 PM
    Monday, December 3, 2012 7:58 PM

All replies

  • To be able to use any controls, you need to set the layout to custom.

    <div data-win-control="WinJS.UI.AppBar" data-win-options="{layout:'custom',placement:'bottom'}">
    </div>

    • Marked as answer by DallasNChains Monday, December 3, 2012 11:07 PM
    Monday, December 3, 2012 7:58 PM
  • Thanks, Robert! :D
    Monday, December 3, 2012 11:07 PM