How do I apply an effect to a Border but not to its contents in WPF?

前端 未结 3 1856
栀梦
栀梦 2020-12-10 04:54

I have a WPF application that has a 3rd party data grid with a border around it. I\'ve used the DropShadowEffect to put a shadow behind the border, but this se

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 05:21

    The link from gcores had the answer, which is to put the border and its content together in the same grid so the content overlays the border.

    
        
            
                
                    
                
            
            
                This is some text
                This is some text
                This is some text
                This is some text
                This is some text
                This is some text
            
        
    
    

提交回复
热议问题