WPF-创建自定义ItemsControl [英] WPF - Creating a custom ItemsControl

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

问题描述

我正在寻找为WPF创建自定义控件的方法,并且发现了一些相当有用的博客,这些博客含糊地介绍了足够的细节,但我仍在努力中.

I'm looking into creating custom controls for WPF and I've found some reasonably useful blogs and such that vaguely go into enough detail but I'm still struggling a bit.

基本上,我试图创建的东西类似于臭名昭著的"Coda Slider",但我只是不了解该如何正确入门.任何人都可以将我指向某个人/某处的方向,以使我对创建自定义ItemControl有所了解,或者为我提供诸如需要覆盖哪些ItemsControl成员的基本信息?

Basically, what I'm trying to create is something akin to the infamous 'Coda Slider' but i just don't know enough to get started properly. Can anyone either point me in the direction of someone/somewhere to give me the low-down on creating custom ItemControls or provide me with the basic information like what ItemsControl members i need to override?

所有帮助将得到亲切的接待.

All help would be graciously received.

推荐答案

我在一个名为"WittyTwitter"的开源WPF项目中看到了相同的功能.当我浏览代码时,他们在Kevin Moore的"WPF Bag-o-Tricks"库中使用了ZapScroller.他曾是Microsoft WPF的项目经理.在这里看看:

I had seen this same functionality in an open source WPF project called "WittyTwitter". When I looked through the code, they were using something called the ZapScroller in Kevin Moore's "WPF Bag-o-Tricks" library. He was a PM for WPF at Microsoft. Have a look here:

http://work.j832.com/2008/03/bag-o-tricks-march-edition.html

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

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