时间:2019-03-17 标签:c#propertyGridkeylistener
我有一个属性网格; PropertyGrid 包含许多存储数值的属性; 我想要做的是输入这些属性之一,而不是在其中写入新数字,而是通过按向上/向下箭头增加/减少其值。
关于如何处理这个问题有什么想法吗?
I have a propertyGrid;
PropertyGrid contains lots of properties storing number values;
What I want to do is to enter one of those properties and instead of writing new number in it, by pressing arrows UP/DOWN increase/decrease its value.
Any ideas on how to handle that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要实现您的 UI 类型编辑器。
请查看此 MSDN 页面,了解从哪里开始并获取有价值的例子。
You need to implement your UI Type Editor.
Look at this MSDN page just to know where to start and to get a valuable example.
我必须做一个 PropertyGrid,大约一年前我使用了这个库:
http://wpg.codeplex.com/
我不记得它是否在做你想做的事情,但它非常完整!
我记得在 int (例如)上你有一些 和 按钮
I had to do a PropertyGrid and I used this library about 1 year ago :
http://wpg.codeplex.com/
I don't remember if it was doing what you want but it was VERY complete !
I do remember that on int (for example) you had some and buttons