WPF 绘图相关

Image ……对象【.Source】

  至

【Drawing Pen、Brush、等

  至

Drawing Pen、Brush.Drawing等】【也可以直接Image……对象.Drawing,之前便可以省去】

  至

Pen、Brush Drawing……等

  至

……Drawing.Geomertry等

  至

Pen、Line……Geometry等

也即 Drawing…….Drawing、……Drawing.Geomertry;

 

 

 

2.

Visual 类是每个 FrameworkElement 对象所派生自的基本抽象。 它还可以用作在 WPF 中编写新控件的入口点。在 Win32 应用程序模型中,可以采用多种方式将它视为等效于窗口句柄 (HWND)。

Visual 对象是一个核心 WPF 对象,它的主要作用是提供呈现支持。 用户界面控件(例如 ButtonTextBox)派生自 Visual 类,并使用 Visual 定义的属性来保存它们所呈现的数据。 Visual 对象可对下列功能提供支持: 

从 Visual 对象派生的类的示意图

WPF 有四个可以包含任意内容的类。下表列出了从 Control 继承的类。System.Windows.Controls 命名空间

包含任意内容的类

Content

ContentControl

一个任意对象。

HeaderedContentControl

一个标头和一个项,二者都是任意对象。

ItemsControl

任意对象的集合。

HeaderedItemsControl

一个标头和一组项,它们都是任意对象。

使用这些类的控件可以包含相同类型的内容,并且可以相同的方式处理这些内容。下图显示了来自每个内容模型的、包含一个图像和一些文本的控件。

继承层次结构

System ..::. Object
   System.Windows.Threading ..::. DispatcherObject
     System.Windows ..::. DependencyObject
       System.Windows.Media ..::. Visual
         System.Windows ..::. UIElement
           System.Windows ..::. FrameworkElement
             System.Windows.Controls ..::. Control
               System.Activities.Presentation.Toolbox ..::. ToolboxControl
               System.Windows.Controls ..::. Calendar
               System.Windows.Controls ..::. ContentControl
               System.Windows.Controls ..::. DataGridRow
               System.Windows.Controls ..::. DatePicker
               System.Windows.Controls ..::. FlowDocumentReader
               System.Windows.Controls ..::. FlowDocumentScrollViewer
               System.Windows.Controls ..::. ItemsControl
               System.Windows.Controls ..::. PasswordBox
               System.Windows.Controls.Primitives ..::. CalendarItem
               System.Windows.Controls.Primitives ..::. DocumentViewerBase
               System.Windows.Controls.Primitives ..::. RangeBase
               System.Windows.Controls.Primitives ..::. ResizeGrip
               System.Windows.Controls.Primitives ..::. TextBoxBase
               System.Windows.Controls.Primitives ..::. Thumb
               System.Windows.Controls ..::. Separator
               System.Windows.Controls ..::. StickyNoteControl 

posted @ 2014-06-27 10:15  高_山_流_水  阅读(141)  评论(0)    收藏  举报