Outer glow effect to border

后端 未结 1 1524
予麋鹿
予麋鹿 2021-02-02 09:07

How to provide the outer glow effect to border?


    
        

        
1条回答
  •  渐次进展
    2021-02-02 09:53

    BitmapEffects are no longer supported in .NET 4.0.

    From MSDN

    Important In the .NET Framework 4 or later, the BitmapEffect class is obsolete. If you try to use the BitmapEffect class, you will get an obsolete exception. The non-obsolete alternative to the BitmapEffect class is the Effect class. In most situations, the Effect class is significantly faster.

    It isn't the same thing but you can try with a DropShadowEffect with ShadowDepth close to 0 instead.

    Example

    
        
            
        
    
    

    Comparison between the BitmapEffects you had and DropShadowEffect above. DropShadowEffect to the right.

    enter image description here

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