Fill all available space in ItemsComtrol with same width size of elements

前端 未结 1 635
逝去的感伤
逝去的感伤 2020-12-12 05:49

I have an ItemsControl, the ItemsPanel is made by a DockPanel.

Inside of the DockPanel, I can have one, two, or three buttons. The problem arises from the width of t

1条回答
  •  春和景丽
    2020-12-12 06:15

    A UniformGrid with a single row will do what you want:

    
        
    
    

    Example:

    
        
            
                
            
            
                
                
            
        
    
        
            
        
    
        
            
            
        
    
        
            
            
            
        
    
    

    0 讨论(0)
提交回复
热议问题