Aligning controls on both left and right side in a stack panel in WPF

后端 未结 4 1628
梦谈多话
梦谈多话 2020-12-29 19:24

I have the following code:


    
        

        
4条回答
  •  时光取名叫无心
    2020-12-29 19:41

    Just do not use a StackPanel, StackPanels stack. They do, for obvious reasons, not allow alignment in the direction in which they stack. Use a Grid, with column definitions like so:

    
        
        
        
    
    

提交回复
热议问题