How to make the contents of a round-cornered border be also round-cornered?

后端 未结 7 1759
天涯浪人
天涯浪人 2020-11-27 14:11

I have a border element with rounded corners containing a 3x3 grid. The corners of the grid are sticking out of the border. How can I fix that? I tried using ClipToBounds bu

7条回答
  •  一向
    一向 (楼主)
    2020-11-27 14:49

    Pure XAML:

    
        
            
                
                    
                
            
        
        
    
    

    Update: Found a better way to achieve the same result. You can also replace Border with any other element now.

    
        
            
        
        
        
    
    

提交回复
热议问题