Synchronizing WPF control widths in a WrapPanel

前端 未结 3 632
悲&欢浪女
悲&欢浪女 2021-01-19 11:21

I have this case


    Really long name
    Short
    Longe         


        
3条回答
  •  攒了一身酷
    2021-01-19 11:58

    You can add a property or a converter that does the needed work, then bind each column's width to it. The property or converter can access the entire list of items, finding the widest one, and returning the desired width for all elements.

提交回复
热议问题