Simon Mourier's Avatar
Simon Mourier's blog (1349 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • imaging
  • wpf

How to apply a drop shadow effect when drawing to a DrawingContext in WPF?

Mar 7, 2012 See the question and my original answer on StackOverflow

If you're running on .NET Framework 3.5 SP1 or higher, you should use UIElement.Effect or Visual.VisualEffect (this one is protected so you would need to derive from it) instead, with an instance of System.Windows.Media.Effects.DropShadowEffect.

  • SmoBlog © 2010-2025 Simon Mourier. All rights reserved.
  • Privacy & Terms