图标模糊显示

代码:

        private void Image_MouseEnter(object sender, MouseEventArgs e)
        {
            Image image = sender as Image;
            BlurEffect newBlurEffect = new BlurEffect();
            newBlurEffect.Radius = 5;
            image.Effect = newBlurEffect;
        }

        private void Image_MouseLeave(object sender, MouseEventArgs e)
        {
            Image image = sender as Image;
            BlurEffect newBlurEffect = new BlurEffect();
            newBlurEffect.Radius = 0;
            image.Effect = newBlurEffect;
        }

 

posted @ 2017-11-08 14:51  wzwyc  阅读(211)  评论(0编辑  收藏  举报