Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9176427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:06:28+00:00 2026-06-17T17:06:28+00:00

I have created an appbar for my windows8 application using javaScript. I want to

  • 0

I have created an appbar for my windows8 application using javaScript.

I want to put the label of the appbar button besides the appbar icon, instead of below the appbar icon.

Can any one plz tell me whether it is possible or not. If yes, how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:06:29+00:00Added an answer on June 17, 2026 at 5:06 pm

    First, I’d be a bit wary of changing the default behavior in such a way, since it will deviate from the experience that the user will have with most other applications on the platform. That said, I think it should be doable, in at least one way.

    Here are a couple of approaches to consider, not that I consider any ‘optimal’, but they may be you a place to start:

    Looking at the structure of the generated object (you can use Interactive Mode in Blend) you can see the command is two stacked span tags (one containing the icon and circle, and the other the command text). From WinJS.UI.AppBar doc, you can style these spans, but since a span is an in-line element, I don’t believe you’ll can move it vertically so that it sits next to the button. You can play with margin-right and margin-left a bit though.

    Now another option is to try rewriting the DOM that’s generated so that you throw away the representation as span tags and build something yourself, but that’s a lot of work with unknown fragility.

    A third option is roughly the design-time equivalent of modifying the DOM. Instead of using the default behavior of AppBar, create a custom layout. For instance, the following markup (which is not production-quality, with in-line styles and all :)) produces the image that then follows:

        <div id="appbar" data-win-control="WinJS.UI.AppBar" data-win-options="{layout: 'custom'}">
        <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmd',  icon:'placeholder'}" type="button"></button>
        <span style="margin-left: -28px; font-size: 0.8em">Command 1</span>
        <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmd',  icon:'placeholder'}" type="button"></button>
        <span style="margin-left: -28px; font-size: 0.8em">Command 2</span>
    </div>
    

    enter image description here

    There is an AppBar sample on the Windows Dev Center that may help you as well if you go the custom route.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an android application that calls (using kSOAP library) a SOAP based
I am using windows forms application using C#. I have created a dialog box
I'm creating a multilingual application using Windows Forms. I have created my multilingual content
I have created an MSI package (Using InstallShield - IS) that installs my application
I have created a JSP / servlets application running in Tomcat 7. It runs
I have created two imageViews promatically as shown below: public void createImageViews(Integer count){ ImageView[]
For a Windows 8 Application, I can create AppBar style buttons using 'Segoe UI
I have created a custom Button for use in my WinForms applicationusing the followng
I have created a registry file that adds my application to start when windows
For a Windows Phone 7 app, I have created an application bar which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.