Bug Report B233036
Visible to All Users

Editorbutton descendant doesn't serialize correctly

created 12 years ago

If you add additions properties to Editorbutton descendant, it doesn't serialize properly into Designer.cs.

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

We have discussed this issue with our developers and decided that this behavior isn't a bug. To serialize EditorButton descendants, add new constructors with your custom properties and all variations of common properties that you want to change via the designer. For instance, you can simply create a new constructor based on the largest one and add additional parameters corresponding to your custom properties. Please note that it is also required to add the [EditorButtonPreferredConstructor] attribute to this constructor.
The attached project demonstrates this approach.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.