WPF几个核心类的类层次结构

WPF几个核心类的类层次结构

System.Threading.DispatcherObject:(Dispatch:派遣,调度)WPF应用程序使用单线程和STA模型,整个用户界面由单个线程拥有。

System.Windows.DependencyObject:  (Dependency:从属)在WPF中,和屏幕上的元素交互主要是通过属性进行,通过继承DependencyObject类,WPF可以获得对依赖项属性的支持。

System.Windows.Media.Visual:在WPF窗口上显示的每一个元素,从本质上都是一个Visual对象。Visual可以看做事一个绘图的对象。

System.Windows.UIElement:UIElement类为WPF的本质提供支持。如布局,输入,焦点,实践 (LIFE)。

System.Windows.FrameworkElement:该类实现了一些全部由UIElement类定义的成员。

System.Windows.Shape:基础的形状类(如Polygon类,Line类,Path类)

System.Windows.Controls.Control:控件类

System.Windows.Controls.ContentControl:它是所有具有单一内容的控件的基类

System.Windows.Controls.ItemsControl:所有显示选项集合的控件的基类

System.Windows.Controls.Panel:所有布局容器的基类

转载于:https://www.cnblogs.com/ivangeb/archive/2013/04/22/3034890.html