#31 – UIElement Class

The UIElement class inherits from Visual and adds support for basic user interaction behavior, including:

  • Layout behavior
    • Parent/child relationship
    • Measure/Arrange passes
  • Responding to user Input

    • Input events from devices like keyboard/mouse
    • Command bindings
  • Manage Focus
  • Raise (and respond to) routed Events
    • Events bubble (up) or tunnel (down) element tree

Note the acronym formed, which helps in thinking about UIElement – “LIFE begins at UIElement“.

Advertisement