DropShadowEffect shadowEffect = new DropShadowEffect(); shadowEffect.Color = Colors.Gray; shadowEffect.Direction = 320; shadowEffect.ShadowDepth = 5; shadowEffect.BlurRadius = 10; element.Effect = shadowEffect;
BlurEffect blurEffect = new BlurEffect(); blurEffect.Radius = 10; element.Effect = blurEffect;
ColorEffect colorEffect = new ColorEffect(); colorEffect.Color = Colors.Red; element.Effect = colorEffect;The Effect class is part of the System.Windows.Media.Effects package library.