图标模糊显示
代码:
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; }