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

  • SEARCH
  • Home
  • 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 8571809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:51:49+00:00 2026-06-11T18:51:49+00:00

I want to add About button (may be link) to the Settings Charm. But

  • 0

I want to add About button (may be link) to the Settings Charm.
But i dont’t want to display content in settings charm, i need to navigate About.html page in application.
App Settings Sample didn’t help me. Is there anyway to achieve this?
I need to do this with JavaScript and HTML 😉

Currently i added code below to default.js

 app.onactivated = function (eventObject) {
        if (eventObject.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {
            //WinJS.UI.disableAnimations();

            WinJS.Application.onsettings = function (e) {
                e.detail.applicationcommands = {
                    "about": {
                        title: "About", href:"/html/About.html"
                        }
                }
                WinJS.UI.SettingsFlyout.populateSettings(e);
                };
...
}

I created an HTML file under html folder. Here is the code for About.html

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>About</title>

    <!-- WinJS references -->
    <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>


    <link rel="stylesheet" type="text/css" href="css/staticPages.css" />
    <script type="text/javascript" src="/js/navigator.js"></script>
    <script src="/js/jq-1.7.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/js/networkInfo.js"></script>
    <script src="/js/About.js" type="text/javascript"></script>
</head>
    <body>
    <div id="siluet" class="siluet">&nbsp;</div>
    <div id="contentDetay">
        <button id="backbutton" class="win-backbutton">
        </button>
        <img id="headLogo" src="/images/head_logo.png" alt="XYZ" />
        <progress id="progressRing"></progress>
        <div id="title"><h1 id="groupNameHeader">Group Name</h1><h1 id="pageTitle">Page Title</h1><div id="sectionSelectArrow">&nbsp;</div></div>
        <div id="menuPopUp">
            <select id="menuList" multiple="multiple"></select>
        </div>

        <div id="staticContainer"></div>
        <div id="noSnapView">
            <p>İçeriği görüntüleyebilmek için ekranı büyütün</p>
        </div>
    </div>
</body>

</html>

The problem when i click About link under Settings Charm Bar, i got error at About.js file which is under /js folder.

(function () {
    'use strict';

    var dataItems;
    var groupIndex;
    var sectionIndex;
    var itemIndex;

    function ready(element, options) {

        networkInfo.getInfo();
        pageTitle.style.display = "none"; // pageTitle.style is undefined

        var that = this;
        groupNameHeader.innerText = "About"; // groupNameHeader is undefined

        var aboutContent; // This content is retrieving from web service
        // staticContainer is undefined
        staticContainer.innerHTML = window.toStaticHTML(aboutContent);

    }  

     WinJS.Namespace.define("appGlobal", {
        fadeProgressRingOut: fadeProgressRingOut
    });
    WinJS.UI.Pages.define("/html/About.html", {
        ready: ready
    });

})();

As you can see every HTML element is undefined in .js file; but i couldn’t find the reason.

  • 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-11T18:51:50+00:00Added an answer on June 11, 2026 at 6:51 pm

    Changing the code like this may resolve your issue:

    app.onactivated = function (eventObject) {
        if (eventObject.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {
            //WinJS.UI.disableAnimations();
    
           var settingsPane = Windows.UI.ApplicationSettings.SettingsPane.getForCurrentView();
           settingsPane.addEventListener("commandsrequested", onCommandsRequested);
    
        // ...
    
    }
    
    function onSettingsCommand(){
        nav.navigate("html/about.html");
    }
    
    function onCommandsRequested(eventArgs){
        var settingsCommand = new Windows.UI.ApplicationSettings.SettingsCommand("about", About", onSettingsCommand);
        eventArgs.request.applicationCommands.append(settingsCommand);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

it's about Ruby On Rails. I want to use Googleauth and need to add
I want to add about 300 grids to a UIView,It is OK if I
I just basically want to add about 20 and sometimes 80 Proximity Alerts with
i have a table with about 200,000 records. i want to add a field
I want add UIGestureRecognizerDelegate to UIWebView,but failed. if [self.view addsubView:webView]; So UIWebView is ok,but
I may seem ignorant but I have not found much information about how to
So I have a load more button, and now I want to add a
I want to add or remove jquerymobile attribute data-role=button from anchor tag on window
I want to add a dropshadow to a button i've drawn in coregraphics. Other
I have a question about forms and controls. I want to add the ability

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.