Visual对象——WPF
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.Media.ContainerVisual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Media.Media3D.Viewport3DVisual
Visual:是WPF中用以呈现点击测试(与一个点、矩形、区域或其它对象之间执行像素级的点击检测,比如判断鼠标是否在一个对象内等),坐标转换和计算可视化对象尺寸范围的类。
以下是Visual,UIElement,FrameworkElement的构造示意:
public abstract class Visual : DependencyObject
public class UIElement : Visual, IAnimatable, IInputElement
public class FrameworkElement : UIElement, IFrameworkInputElement, IInputElement, ISupportInitialize
从Visual的构造看,它是继承于DependencyObject的抽像类。
而UIElement继承自Visual,FrameworkElement又继承自UIElement。
Visual是所有FrameworkElement的抽象基类。它为在WPF中写新的控件提供了入口点,在许多方面,你可以把它想像成为相当于Win32应用程序模式下的window句柄(HWND)。
Visual对象是WPF的核心对象,其主要角色是提供呈现支持(即为所有“FrameworkElement、UIElement” 提供 视觉呈现);用户控件,如按钮Button和文本框TextBox,都从Visual类继承,并使用Visual定义的属性来维持它们的呈现数据。
最新文章
- python-切片 迭代 生成器
- android两种基本联网方式与一种第三方开源项目的使用
- 根据Excel的内容和word模板生成对应的word文档
- 【前端】互联网公司2014前端笔试面试题JavaScript篇(待续)
- mysql 理解 int(11)
- Program C--二分
- HTTP幂等性
- Activity 的启动模式
- AngularJS and Asp.net MVC
- magento里的session传值
- linux安装安卓开发工具android studio
- 【BZOJ3529】数表(莫比乌斯反演,树状数组)
- 基于html5 plus + Mui 移动App开发(三)-食全库
- 【转载】 Sqlserver中通过Select Into语句快速单表备份
- 编年史:OI测试
- Python丢弃返回值
- Android为TV端助力 浅谈Aidl 通讯机制
- Linux批量修改(删除)文件名某些字符(rename命令)
- 解决Hive与Elasticsearch共有库 guava 冲突 NoSuchMethodError
- hadoop 遇到java.net.ConnectException: to 0.0.0.0:10020 failed on connection