WPF rectangle - round just top corners

后端 未结 4 1930

How can I have just the top corners rounded for a WPF rectangle?

I created a border and set the CornerRadius property and inside the border I\'ve added my

4条回答
  •  清酒与你
    2021-01-31 01:50

    This one will work even with Rectangle (or anything else) inside it:

    
        
            
                
                    
                
            
        
    
        // put your rounded content here
    
    
    

    You will have to play with Height and Width if you do not have exact size of content.

提交回复
热议问题