UIElement vs FrameworkElement

I do not understand when you use UIElement , not FrameworkElement , and why the FrameworkElement class exists. Essentially, what is the additional functionality provided by FrameworkElement as opposed to UIElement ?

+6
source share
1 answer

You should never inherit from UIElement (except for the FrameworkElement class), among other properties it does not have a DataContext , whose lack can bring you some trouble.

+3
source

Source: https://habr.com/ru/post/896663/


All Articles