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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:33:21+00:00 2026-05-28T06:33:21+00:00

On selecting through left click it appears like this. On Selecting through right click

  • 0

On selecting through left click it appears like this.

enter image description here

On Selecting through right click it appears like this

Here you can see although context menu is opened but the Item book got grayed out.
enter image description here

How can we resolve this problem.

I have created Tree and its Context menu through Code not through XAML.

  • 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-28T06:33:22+00:00Added an answer on May 28, 2026 at 6:33 am

    That is goverend by some resources, the unfocused item will have the brush that can be foundusing the SystemColors.ControlBrushKey, so you can override the brush that will be found by using the same key locally:

    <TreeView.Resources>
        <Style TargetType="TreeViewItem">
            <Style.Resources>
                <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}"
                                 Color="{StaticResource {x:Static SystemColors.HighlightColorKey}}"/>
            </Style.Resources>
        </Style>
    </TreeView.Resources>
    

    The forground will normally still change but you seem to have overridden that already.

    (You should use more XAML by the way)

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

Sidebar

Related Questions

From my previous question for selecting specific html text, I have gone through this
I'm running through an XML document, selecting all the elements, and creating links based
I want to override the selection behavior of ListBox Items. We can traverse through
when selecting a column that can contains a NULL value I get an exception
I want to automatically (not by manually selecting through the internal facebook app) download
By using the wizard, and selecting Office 2007 style, you can come up with
I came across this page at walmart.com and on the left side of the
I'm looping through rows in a datagridview, and selecting a cell from the 3rd
I have code to move columns left and right based on keypresses, but the
I'm working through this example: http://developer.android.com/guide/topics/fundamentals/fragments.html#Example In landscape orientation this works as intended, but

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.