I am currently working with Panels in WPF, and I noticed that as regards the Width and Height properties, there are also two other pro
Panel
Width
Height
ActualWidth accounts for padding in the value so anytime you need to know that number you can call Actualwidth instead of width and avoid the calculation.
ActualWidth
Actualwidth
edit: removed Margin b/c it isn't part of ActualWidth.