Windows应用程序中的CustomControl是什么 [英] what is CustomControl in Windows application

查看:119
本文介绍了Windows应用程序中的CustomControl是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

sir,
what is CustomControl in Windows application which Purpose it used.

推荐答案

自定义控件是.NET开发中的关键主题.它们可以通过改进封装simplifying a programming model, and making user interface more "pluggable" (i.e., making it easier to swap out one control and replace it with a completely different one without rewriting your form code)来帮助您的编程风格.当然,自定义控件还可以具有其他好处,包括将通用窗口转换为最新的现代界面的功能.

通常,开发人员处理自定义控件的开发出于以下三个原因之一:

1)创建控件以抽象出不重要的细节并对其进行量身定制
用于特定类型的数据.您已在第6章中通过自定义
看到了此模型 ListView和TreeView示例.
2)要创建提供全新功能的控件,或仅合并
现有的UI元素以独特的方式.
3)创建具有独特原始外观或模仿流行外观的控件
专业应用程序(例如Microsoft的Outlook栏)中的控件
不适用于大众.

详细信息此处 [
Custom controls are a key theme in .NET development. They can help your programming style by improving encapsulation, simplifying a programming model, and making user interface more "pluggable" (i.e., making it easier to swap out one control and replace it with a completely different one without rewriting your form code). Of course, custom controls can have other benefits, including the ability to transform a generic window into a state-of-the-art modern interface.

Generally, developers tackle custom control development for one of three reasons:

1) To create controls that abstract away unimportant details and are tailored
for a specific type of data. You saw this model in Chapter 6 with custom
ListView and TreeView examples.
2) To create controls that provide entirely new functionality, or just combine
existing UI elements in a unique way.
3) To create controls with a distinct original look, or ones that mimic popular
controls in professional applications (like Microsoft''s Outlook bar) that
aren''t available to the masses.

More info here[^]


真的吗?你不能只用谷歌搜索吗?

定制控件是一种控件,它覆盖由基础框架提供的标准控件的一个或多个功能或视觉方面/属性/组件.它的目的是扩展所述基本控件以提供所述功能/视觉外观.
Really? Couldn''t you just google this?

A custom control is a control that overrides one or more functional or visual aspects/properties/components of a standard control provided by the underlying frameework. It''s puprose is to extend said base control to provide said functionality/visual appearance.


希望 this [
Hope Writing your Custom Control: step by step[^] article from CP and this[^] might help you.


这篇关于Windows应用程序中的CustomControl是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆