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 8784173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:01:19+00:00 2026-06-13T21:01:19+00:00

With Visual Studio 2012 I created a JavaScript Blank App, added a global variable

  • 0

With Visual Studio 2012 I created a JavaScript Blank App, added a global variable in js/default.js:

var mylabel = "my label";

and I called

WinJS.Binding.processAll();

at the end of app.onactivated.

Then I added two AppBarCommands in default.html:

<button data-win-control="WinJS.UI.AppBarCommand"
    data-win-bind="label: mylabel">
</button>
<button data-win-control="WinJS.UI.AppBarCommand"
    data-win-bind="innerText: mylabel">
</button>

The first binding does nothing, the second one shows the text “my label” instead of the button. How can I databind the button label ?

  • 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-13T21:01:20+00:00Added an answer on June 13, 2026 at 9:01 pm

    You need to bind the label property of the app bar command control instance. This can be done with:

    <button data-win-control="WinJS.UI.AppBarCommand"
        data-win-bind="winControl.label: mylabel">
    </button>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the JavaScript Grid App template in Visual Studio Express 2012 to build
I created an mvc4 project in visual studio 2012 RC, and added the ninject.mvc3
I created an ASP WebApplication using Visual Studio 2012. If I modify the default
I am using Visual Studio Express 2012 RC. If a create a blank hello
I created a web site in Visual Studio 2012 that interacts with a SQL
I created an empty C++ project in Visual Studio 2012 Express (for Desktop of
I've created a brand new MVC 4 application in C# using Visual Studio 2012.
I have a simple web service I have created. I'm using Visual Studio 2012
I've created a new ASP.Net MVC 4 project in Visual Studio 2012 and figured
I created a new class library project in Visual Studio 2012, to define data

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.