How to get width and height of a WPF Control?

Say you have a control called myWPFControl.

You can use ActualHeight and ActualWidth to get the height and width of that control.


 

myWPFControl.ActualHeight.ToString();

myWPFControl.ActualWidth.ToString();