摘要: 最近学着做了一个仿QQ面板的自定义控件,送给和我一样喜欢控件开发却冥思苦想不得入门之法的初学者朋友们,顺便说明一下,下面的图是我从电脑上截下来的,代码不全,其间使用了另一个命名空间定义的类型,不能简单的复制,另外控件中有一个FlatStyle属性,但没有全部实现,只实现了FlatStyle.Standard;另外,该控件有Orientation属性,可决定面板滑动的方向,并在智能标记面板中根据控件方向的不同显示不同的内容,如下面两幅图中智能标记面板中“常规”中的停靠行为。具体请参考代码中“设计时扩展”一节中的内容。这个控件在设计阶段的选择行为是尽量模仿TabControl,如:只有在选定控件时 阅读全文
posted @ 2009-04-23 22:13 蒋启磊 阅读(465) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;using System.Windows.Forms.Design;using System.ComponentModel.Design;using System.Collections;using Etonesoft.DataType.Exten 阅读全文
posted @ 2009-04-23 22:07 蒋启磊 阅读(389) 评论(0) 推荐(0) 编辑