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. how to bind labels in user Control with observablecollection

how to bind labels in user Control with observablecollection

Scheduled Pinned Locked Moved WPF
tutorial
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.
  • W Offline
    W Offline
    wasifmuneer
    wrote on last edited by
    #1

    i have one user control in which i have placed 15 label controls,now i want to bind their content with an observableCollection, in which i am filling string values. let me clear once again, i am filling list which is observableCollection and want to show each item in list as label values in usercontrol. sorry for bad English. Regards

    E 1 Reply Last reply
    0
    • W wasifmuneer

      i have one user control in which i have placed 15 label controls,now i want to bind their content with an observableCollection, in which i am filling string values. let me clear once again, i am filling list which is observableCollection and want to show each item in list as label values in usercontrol. sorry for bad English. Regards

      E Offline
      E Offline
      ekolis
      wrote on last edited by
      #2

      Why do you have exactly 15 labels? Are there never going to be more than 15 items in the collection? I'd recommend looking into the ListView control as an alternative.

      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