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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:31:56+00:00 2026-05-27T23:31:56+00:00

I have a several MenuItem’s inside a ContextMenu in my wp7 app using silverlight.

  • 0

I have a several MenuItem’s inside a ContextMenu in my wp7 app using silverlight. In a particular scenario, I need to place a checkmark beside one of the items.

Is there any way to do this?

I would settle for adding a Image control to the right of it if I had to.

I’ve even tried doing this:

CheckBox box = new CheckBox();
menuItem.Items.Add(box);

but got a NotImplementedException.

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-27T23:31:56+00:00Added an answer on May 27, 2026 at 11:31 pm

    I found an easy way to get this working. I bound the menu item’s Header text property in xaml to a string property which adds the unicode checkmark character (0x2714) if the flag is set.

    <toolkit:MenuItem 
          Header="{Binding InvertedCommandHeader}"              
          Click="onCommandInvert"
    />
    

    I defined the dependency properties in my data context object like so:

    public const string InvertedPropertyTag = "Inverted";
    public static readonly DependencyProperty InvertedProperty =
        DependencyProperty.Register(
            InvertedPropertyTag,
            typeof(bool),
            typeof(MyData),
            new PropertyMetadata(false));
    public bool Inverted
    {
      get
      {
        return (bool)GetValue(InvertedProperty);
      }
      set
      {
        SetValue(InvertedProperty, value);
    
        InvertedCommandHeader = value ?
          Strings.IDST_MENUITEM_INVERTED + "  \u2714" :
          Strings.IDST_MENUITEM_INVERTED;
      }
    }
    
    public const string InvertedCommandHeaderPropertyTag = "InvertedCommandHeader";
    public static readonly DependencyProperty InvertedCommandHeaderProperty =
        DependencyProperty.Register(
            InvertedCommandHeaderPropertyTag,
            typeof(string),
            typeof(MyData),
            new PropertyMetadata(
              Strings.IDST_MENUITEM_INVERTED));
    public string InvertedCommandHeader
    {
      get
      {
        return (string)GetValue(InvertedCommandHeaderProperty);
      }
      set
      {
        SetValue(InvertedCommandHeaderProperty, value);
      }
    }
    

    When the menu item is selected, I toggle the checkmark property.

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

Sidebar

Related Questions

We have several .NET applications that monitor a directory for new files, using FileSystemWatcher.
I have an ItemRenderer that is shared by several applications (inside a DataGrid), and
I have several resource dictionaries with theme-related data, where I declared styles for particular
I have been happily using VS 2010 for several weeks without any performance problems.
I have several dropdownlists and textboxes inside an <asp:UpdatePanel> , which should let me
I have several activities in my app. I want my activities to have the
I have several questions about the Android in-app billing, as I cannot find what
I have several (as in 100s) spreadsheets using an addin (let's call it Addin2003).
I have several small place marks such as 'א,א' 'א,ב'. If we use the
I have several ASP:TextBox controls on a form (about 20). When the form loads,

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.