I am currently working with Panel
s in WPF, and I noticed that as regards the Width
and Height
properties, there are also two other properties called ActualWidth
and ActualHeight
.
ActualWidth
Gets the rendered width of this element. This is a dependency property. (Inherited from FrameworkElement.)
Width
Gets or sets the width of the element. This is a dependency property. (Inherited from FrameworkElement.)
Reference: MSDN
Can anyone point out the differences between the two and when to use either one ?