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 the Stackpanel object into ListView

How to bind the Stackpanel object into ListView

Scheduled Pinned Locked Moved WPF
csharpwpfdata-structurestutorial
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.
  • D Offline
    D Offline
    DavJes
    wrote on last edited by
    #1

    Hi , In WPF, am trying to create ListView, Which binds with list of class KPI objects. Where the KPI class contains Name(string), StackPanel(which contains TextBlock + Image). I want to show only the StackPanel into the list , not the Name property. How do we bind the stack panel object alone .

    M 1 Reply Last reply
    0
    • D DavJes

      Hi , In WPF, am trying to create ListView, Which binds with list of class KPI objects. Where the KPI class contains Name(string), StackPanel(which contains TextBlock + Image). I want to show only the StackPanel into the list , not the Name property. How do we bind the stack panel object alone .

      M Offline
      M Offline
      Michael Eber
      wrote on last edited by
      #2

      you need to define the stackpanel in a column template.

      D 1 Reply Last reply
      0
      • M Michael Eber

        you need to define the stackpanel in a column template.

        D Offline
        D Offline
        DavJes
        wrote on last edited by
        #3

        Hi, thanks. Can u pl help me here giving me example for this ? thanks

        M 1 Reply Last reply
        0
        • D DavJes

          Hi, thanks. Can u pl help me here giving me example for this ? thanks

          M Offline
          M Offline
          Michael Eber
          wrote on last edited by
          #4

          Here you go

          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