Let TextBox stretch to fill width in StackPanel

后端 未结 5 684
清歌不尽
清歌不尽 2021-01-01 09:58

I have a StackPanel in my WinRT C# Metro app that I want to use as container for a label/value pair (TextBlock and TextBox) like this:

5条回答
  •  醉话见心
    2021-01-01 10:40

    Unfortunately the alternative (DockPanel) isnt available for Metro. You could try a WrapGrid, but I dont know if it'll solve your problem (Ive never used it).

    The only real way of doing this is using a Grid as you described:

    
        
            
            
        
        
        
    
    

提交回复
热议问题