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. C#
  4. WPF: listbox not refreshing

WPF: listbox not refreshing

Scheduled Pinned Locked Moved C#
csharpwpfhelptutorialquestion
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.
  • Y Offline
    Y Offline
    Yoyosch
    wrote on last edited by
    #1

    I have a listbox in which I'm keeping several expanders. At the beginning all expanders are collapsed. The height of the listbox is just enough to show them all. After I expand one of those expanders, the height of listbox is increased accordingly. However, when I collapse this expander, height of the listbox remains unchanged, leaving huge white space. How to refresh listbox size? Thank for help in advance

    D 1 Reply Last reply
    0
    • Y Yoyosch

      I have a listbox in which I'm keeping several expanders. At the beginning all expanders are collapsed. The height of the listbox is just enough to show them all. After I expand one of those expanders, the height of listbox is increased accordingly. However, when I collapse this expander, height of the listbox remains unchanged, leaving huge white space. How to refresh listbox size? Thank for help in advance

      D Offline
      D Offline
      Dalek Dave
      wrote on last edited by
      #2

      Have you considered This Page[^]? You can expand the size by Add.Item == Add.Point, that is to say define the size 'By Each' add.item.

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

      Y 1 Reply Last reply
      0
      • D Dalek Dave

        Have you considered This Page[^]? You can expand the size by Add.Item == Add.Point, that is to say define the size 'By Each' add.item.

        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^] Trolls[^]

        Y Offline
        Y Offline
        Yoyosch
        wrote on last edited by
        #3

        Listbox contains expanders and each of them has different size. The problem is not growing. The problem is to shrink listbox after collapsing expander.

        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