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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:03:07+00:00 2026-05-23T17:03:07+00:00

Appreciate that the WP7 ApplicationBarIcon is not standard control as such. I need to

  • 0

Appreciate that the WP7 ApplicationBarIcon is not standard control as such.

I need to be able to hide this programatically (I need to hide rather than disable)

1/ is there any other way I can do this other than adding/removing the icon

2/ assuming that I have to add and remove it, how do I associate an event to the control that I am adding?

  • thanks
  • 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-05-23T17:03:08+00:00Added an answer on May 23, 2026 at 5:03 pm

    The following shows: creating an appbar in code; adding a button to it (including a “click” event handler); and removing the specific button.

        this.ApplicationBar = new ApplicationBar();
    
        var newButton = new ApplicationBarIconButton();
        newButton.IconUri = new Uri("/images/remove.png", UriKind.Relative);
        newButton.Text = "remove";
        newButton.Click += RemoveAppBarButton;
    
        this.ApplicationBar.Buttons.Add(newButton);
    
    
    void RemoveAppBarButton(object sender, EventArgs e)
    {
        for (var i = 0; i < this.ApplicationBar.Buttons.Count; i++)
        {
            var button = this.ApplicationBar.Buttons[i] as ApplicationBarIconButton;
    
            if (button != null)
            {
                if (button.Text == "remove")
                {
                    this.ApplicationBar.Buttons.RemoveAt(i);
                    break;
                }
            }
        }
    }
    

    The important thing to note is that you can’t refer to buttons (or menu items) by name.

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

Sidebar

Related Questions

I appreciate that this may be a pretty daft question, but can anyone think
It is my appreciate that writ your suggestion about this db that i have
Firstly I appreciate that this question could be seen as subjective but I strongly
I appreciate that this may appear to many as a dum question but I
I appreciate that the answer to this could be 'just be consistent' but I'd
I appreciate that LIKE queries are slow as they cannot be indexed. However, I
I'm new to C++ programming and would greatly appreciate replies that don't assume much
I fully appreciate the atomicity that the Threading.Interlocked class provides; I don't understand, though,
I've got some code that doesn't work the way I expect, and I'd appreciate
I appreciate this question is a little silly, so I apologise in advance if

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.