如何开始创建自定义控件 [英] How to start creating custom controls

查看:125
本文介绍了如何开始创建自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是初学程序员,我想做像AvalonEdit这样的应用程序。我的问题是我不懂源代码。你能给我发教程或其他什么地方将会介绍怎么做?关于创建自己的UIElement,Control,示例等的基本知识?



对不起我的英文。

I'm a beginner programmer and I would like to do application like AvalonEdit. My problem is that I don't understand source code. Could you send me tutorial or something else where will be described how to do it? The basic about creating own UIElement, Control, examples etc.?

Sorry for my English.

推荐答案

如果您没有理解源代码,那么您在步行前尝试运行,创建UIElements,UserControls等不是最好的起点。



从基础知识开始:按照您的课程,或预订并进行练习。编码真的没有捷径 - 如果你不太清楚早期的东西,那么后来的东西只会混淆而不是帮助。
If you don't "understand source code" then you are trying to run before you can walk, and creating UIElements, UserControls and so forth are not the best place to start.

Begin with the basics: follow your course, or book and do the exercises. There really is no "short cut" to coding - if you don't know the early stuff really well the later stuff will just confuse rather than help.


谢谢你的答案,但否则。我想使应用程序突出显示语法,哪些将显示行号,但AvalonEdit项目太大,它有太多的功能。我已经在RichTextBox上强调了语法,但在我看来RichTextBox速度很慢。



我不是那么初学者。我想要文章或教程如何开始创建自定义控件。
Thanks for your answer but may otherwise. I would like to make app to highlighting syntax and which will be showing line numbers but AvalonEdit project is too large and it has got too much functions. I have already made highlighting syntax on RichTextBox but in my opinion RichTextBox is slowed.

I'm not so beginner. Simply I would like article or tutorial how to start creating custom control.


这篇关于如何开始创建自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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