#32 – FrameworkElement

The FrameworkElement class inherits from UIElement and is in turn the parent class for all controls in WPF.

FrameworkElement builds on UIElement and adds the following functionality:

  • Layout – implements a layout model by implementing properties like HorizontalAlignment, MinWidth and Margin
  • Support of animation through BeginStoryboard method
  • Data binding
  • Data templates for binding
  • Styles

FrameworkElement is also the main base class for objects that will be added to a logical tree (a hierarchy of visual objects that comprise your user interface).