How to enable visual inheritance for Developer Express controls
来源:互联网 发布:inline 在c语言中 编辑:程序博客网 时间:2024/05/01 02:38
We have found a way to enable visual inheritance in our controls when they are used in Visual Studio 2005 / 2008. We have tested this solution in all the typical visual inheritance scenarios and haven't noticed any failures yet. But we cannot be completely sure that we have chosen the correct approach and thus we don't enable visual inheritance by default. What causes this doubt is that Microsoft disabled visual inheritance for its controls.
There is a DXDesignKeys tool shipped with the DXperience suite. It adds a new key to the registry and is capable of changing its state. When this key is present and enabled, Developer Express controls allow visual inheritance. If it is not present or disabled, visual inheritance is prohibited just as with standard controls (this is the default behavior).
Tool file path:
D:\Program Files (x86)\DevExpress 13.2\Components\Tools\Components\DXDesignKeys.exe
This problem is actually caused by a limitation of the Visual Form Inheritance mechanism. Note that theBar.ItemLinks property is a collection. VFI doesnot fully support collections. It does not inherit collections as one might expect. Collections are simplycopied. So, you cannot change collections on derived forms, you can justadd new elements. Thus, the newly added items are displayed at the last position on a toolbar.
As the most effective solution in this instance, we recommend that you create all the required toolbars and items at design time, but manage item linksprogrammatically. This way, there is no need to store collections. Another approach is to put Item Links on toolbars only on those forms, which are actually used in your application, not on base forms.
See Also:
Can I use the grid on an inherited form or user control?
How to enable visual inheritance for Developer Express controls
- How to enable visual inheritance for Developer Express controls
- How To Enable Android's Developer Options
- How to Use Densities for Controls
- How to use composition and inheritance in visual c# ?
- How to uninstall Visual Studio Express 2012
- how to print log for a developer
- Beginning Visual Web Developer 2005 Express: From Novice to Professional
- Beginning Visual Web Developer 2005 Express: From Novice to Professional
- How to enable packet forwarding for IPv4 and IPv6
- How to enable file sharing for my app?
- How to Enable Failed Request Tracing for UNC Hosting
- ABAP---How to use controls
- ABAP---How to use controls
- How to use C# controls
- How To Display Hierarchical Data by Using Nested Repeater Controls and Visual C# .NET
- How To Display Hierarchical Data by Using Nested Repeater Controls and Visual
- Jdeveloper: How to bind ArrayList to a Table for data controls
- How to enable web condor?
- Android项目中如何正确的引入第三方jar包(工程)
- json
- 设计模式二 策略模式
- SupremeWord进度36.7%
- extjs处理combobox信息回显的做法
- How to enable visual inheritance for Developer Express controls
- Problem 1031 - 走楼梯
- /proc/net/dev文件和/sys/class/net/eth1/statistics/*文件
- 调用Ping 命令及返回值,跨平台
- 文件上传利器SWFUpload使用指南
- 自动控制原理学习总结
- EveryDay-Shell之"ifconfig输出详解“——netspeed.sh网速监控脚本
- 维护代码的一些感受
- 工作说明书SOW(Statement Of Work)