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 generate items inside a Panel using WPF DataBinding?

How to generate items inside a Panel using WPF DataBinding?

Scheduled Pinned Locked Moved WPF
questionwpfcsharpwcftutorial
3 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.
  • M Offline
    M Offline
    Moim Hossain
    wrote on last edited by
    #1

    Can any one tell me, if I need to populate the items of a Panel dynamically using Binding, how can I do so? A panel has got a Children property, unlike other collection control ListView, Listbox that offers a property named ItemsSource or stuffs like that. How can i make this thing work for a panel. To clarify the question- How to bind the items displayed inside a FishEyePanel ..or is it possible at all? usually, What I can do is however, I want to generate the number of button using Binding...is it possible?

    Moim Hossain R&D Project Manager BlueCielo ECM Solutions BV

    P 1 Reply Last reply
    0
    • M Moim Hossain

      Can any one tell me, if I need to populate the items of a Panel dynamically using Binding, how can I do so? A panel has got a Children property, unlike other collection control ListView, Listbox that offers a property named ItemsSource or stuffs like that. How can i make this thing work for a panel. To clarify the question- How to bind the items displayed inside a FishEyePanel ..or is it possible at all? usually, What I can do is however, I want to generate the number of button using Binding...is it possible?

      Moim Hossain R&D Project Manager BlueCielo ECM Solutions BV

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      What I would do here is put a ListView inside your panel, and then generate the buttons inside ListView Items.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      My blog | My articles | MoXAML PowerToys

      M 1 Reply Last reply
      0
      • P Pete OHanlon

        What I would do here is put a ListView inside your panel, and then generate the buttons inside ListView Items.

        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

        My blog | My articles | MoXAML PowerToys

        M Offline
        M Offline
        Moim Hossain
        wrote on last edited by
        #3

        hmm nope, I got my problems solutions .. <ItemsControl ItemsSource="{Binding ConfiguredViews}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> panels:FishEyePanel/ </ItemsPanelTemplate> </ItemsControl.ItemsPanel> </ItemsControl> here is what I was thinking. Thanks for bothering :P

        Moim Hossain R&D Project Manager BlueCielo ECM Solutions BV

        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