Ticket Q480900
Visible to All Users

How to Save and Open Layout to XML?

created 12 years ago

I have a winform with treelist, gauge, ribbon,
i want to save all to XML file with save button, and I also I can open it with open button and load the xml file.
how to do it?

thank.

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

Our controls do not provide the capability to save layout settings of different controls to a single file. However, you can simply implement it manually. For this, I suggest you save all required controls layouts to MemoryStreams, then create an xml file, and add xml data from these MemoryStreams to the created file using standard .Net xml methods.
I suggest you review the Is there any way to include the Treelist nodes in xml ticket that illustrates how to add existing xml data to another xml data as a separate node.

    Show previous comments (2)
    DevExpress Support Team 12 years ago

      Hi,
      As John mentioned, our controls do not provide this capability and it is necessary to implement it manually. I have modified the project from the Is there any way to include the Treelist nodes in xml ticket to fix the issue.

        thank you Gosha.

        DevExpress Support Team 12 years ago

          You are welcome. Please feel free to contact us in case of any difficulty. We are happy to help you at any time.

          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.