Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Gray focus comes on treeview

Gray focus comes on treeview

Scheduled Pinned Locked Moved WPF
csharpwpfdata-structureshelpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ravi Mori
    wrote on last edited by
    #1

    hi.. i have two treeviews in my wpf application. and my both treeview contains hierarchical datatemplate. The Item template has one stack panel in which i have one image and a textblock displaying data.. Now my problem is, when i select particular node in one treeview and after that when i select select particular node in another treeview then the selected node on first treeview's background become gray.. Any idea?? :sigh:

    A 1 Reply Last reply
    0
    • R Ravi Mori

      hi.. i have two treeviews in my wpf application. and my both treeview contains hierarchical datatemplate. The Item template has one stack panel in which i have one image and a textblock displaying data.. Now my problem is, when i select particular node in one treeview and after that when i select select particular node in another treeview then the selected node on first treeview's background become gray.. Any idea?? :sigh:

      A Offline
      A Offline
      ABitSmart
      wrote on last edited by
      #2

      It becomes gray to indicate it is the SelectedItem of the TreeView but the particular TreeView is not currently in focus.

      R 1 Reply Last reply
      0
      • A ABitSmart

        It becomes gray to indicate it is the SelectedItem of the TreeView but the particular TreeView is not currently in focus.

        R Offline
        R Offline
        Ravi Mori
        wrote on last edited by
        #3

        So is there anyway to remove it or replace gray color with some another color?

        A 1 Reply Last reply
        0
        • R Ravi Mori

          So is there anyway to remove it or replace gray color with some another color?

          A Offline
          A Offline
          ABitSmart
          wrote on last edited by
          #4

          Take a look here[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups