流程布局面板。自定义滚动条
是否可以在 FlowLayoutPanel 中使用第三方滚动控件?问题是我们使用的是 devexpress 控件,而 FlowLayoutPanel 的滚动条控件看起来不太好。
有没有办法自定义绘制或用 devexpress 控件替换它们。
关于如何解决这个问题有什么想法吗?
Is it possible to use a third party scroll control inside a FlowLayoutPanel? Thing is that we are using devexpress controls and the FlowLayoutPanel's scrollbar controls does not look good.
Is there a way to custom paint or replace them with devexpress controls.
Any ideas on how to go about this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议您看一下 XtraLayoutControl 套件,它提供了更好的功能与 FlowLayoutPanel 控件相比的功能。另外,请注意,我们的换肤引擎仅适用于 DevExpress 控件,因此标准控件及其元素不会换肤。
最后,这只是一个想法,也许可行。您应该关闭 FlowLayoutControl 滚动条并将滚动条放置在控件附近。您必须处理滚动条的 Scroll 事件才能以编程方式滚动 FlowLayoutControl 并同步滚动条位置。这不是一件容易的事,但我只是不知道如何做到这一点。
I would suggest that you take a look at the XtraLayoutControl Suite that provides a greater functionality in comparison with the FlowLayoutPanel control. Also, please note that our skinning engine works only with DevExpress controls and thus standard controls and their elements are not skinned.
Finally, this is just an idea, and it might work. You should turn off the FlowLayoutControl scrollbars and position our scrollbars near the control. You will have to handle the scrollbars' Scroll event to scroll the FlowLayoutControl programmatically and also synchronize the scrollbars position. This is not an easy task, but I just have no other idea on how this can be done.
我有同样的需求,并提出了一个将标准 FlowLayoutPanel 与 DevExpress XtraScrollableControl 相结合的解决方案。请参阅我的帖子此处。
I had the same need and came up with a solution combining the standard FlowLayoutPanel with the DevExpress XtraScrollableControl. See my post here.