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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. WCF and WF
  4. Colour in Treeview Item

Colour in Treeview Item

Scheduled Pinned Locked Moved WCF and WF
helpquestion
2 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.
  • S Offline
    S Offline
    Saiyed Alam
    wrote on last edited by
    #1

    Hello Friends. I have a treeview in my window. What I want to do is whenever I'll edit on of my treeviewitem and save the information I want to change the colour of that node. So that one can easily understand that this node was changed and now it has the updated information. Can any one help me..? Any help or suggestion would be highly appreciated. Thanking in Advance Johnny

    M 1 Reply Last reply
    0
    • S Saiyed Alam

      Hello Friends. I have a treeview in my window. What I want to do is whenever I'll edit on of my treeviewitem and save the information I want to change the colour of that node. So that one can easily understand that this node was changed and now it has the updated information. Can any one help me..? Any help or suggestion would be highly appreciated. Thanking in Advance Johnny

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      In the template for your tree view items, you can use a converter on a Foreground/Background property binding that returns an appropriate colored brush depending on the state of the data. It's up to you to track the changed state of the data.

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      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