Force a custom WPF Control to resize correctly

前端 未结 4 1557
清酒与你
清酒与你 2020-12-16 05:13

I have written a WPF user control and part of it involves dynamically adding elements to a canvas which effects the height of said canvas. The canvas is nested within a grid

4条回答
  •  忘掉有多难
    2020-12-16 05:44

    You can use a UniFormGrid to archive this. Set Columns or Row equals 1 so that you can get a vertical/horizontal arranged items

    
       

提交回复
热议问题