In WPF, how do I get the true size of a FrameworkElement, including the extra size that an effect such as a drop shadow adds?
I have a button with a drop shadow on it. I am programmatically outputting it to a PNG file. I use ActualWidth
and ActualHeight
to get the size of the button, however this is the size of the button without the drop shadow.
The result is that the button with the drop shadow is squished into the size of the button without the drop shadow.
Anyone know how to figure out what the size of the button with the drop shadow would be?