Loading ...

Basic Elements In Xaml

Hello everybody,

today I want to write few words about basic elements in XAML.

 

DependencyObject

This class is next in inheritance level in XAML after object. DependencyObject gives needed properties for representing something that participates in dependency property system. Mostly needed for data binding. It is basic for UIElement, Geometry, FameworkTemplates, Tile, ResourceDictionary.

UIElement

This is base class for all objects that have visual representation. It supports basic manipulation, appereance, layout. Also it has code for responses for user input, routed events, some aspects of animation system.

FrameworkElement

This class takes part in layout and obliged to have display space in app UI. Following properties are included: Height, Width, Alignment, Margin. Adds cooperation with DataContext.