I want to give a blur effect to my DrawingVisual
. I can do this using BitmapEffect
properties like:
DrawingVisual drawingVisual = new DrawingVisual();
DrawingContext drawingContext = drawingVisual.RenderOpen();
var effect = new System.Windows.Media.Effects.BlurBitmapEffect();
effect.Radius = 10;
drawingVisual.BitmapEffect = effect;
But the compiler give me a warning that Bitmap effect properties is obsolete.
What other alternative I can use to achive the effect on DrawingVisual
?