I create MyDockManager Usercontrol.
=>
Public Class MyDockManager Inherits Infragistics.Win.UltraWinDock.UltraDockManager
End Class
And I want to use the SaveAsXML & LoadFromXML.
So I applied SaveSetting property = true.
The error message that pops up "'MyDockManager' format is not displayed in the serializable"
How Can I do?
Hello Min,
Thank you for posting in our forum.
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I have create a class MyDockManager which inherits from UltraDockManager. I have added MyDockManager component to my form and set its SaveSettings property to true. Then I have run my application and observed no errors.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this issue.
If the project does not work correctly, this indicates either an issue possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using version 15.1.20151.2132 in Infragistics for Windows Forms 2015 Volume 1. So could you please let me know the exact version of Infragistics components which you are using?
If the project does show the product feature working correctly, this indicates a possible issue in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing, or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back.
Set its SaveSettings property to true and then save the design.(ctrl+s)so pop up the error message.I used Infragistics for Windows Forms 2013 Volume 2. (Infragistics4 - v13.2)
I am just checking about the progress of this issue. Let me know if you need my further assistance on it.
Thank you for using Infragistics Components.
Thank you for your feedback.
I am not sure what invokes Ctrl+S in your application. However I have redesigned my sample. It is possible now to load customer setting in my application as well as some initially saved settings from XML file. Please note SaveSettings property and SaveAsXML method are designed for different purpose. By setting SaveSettings property to true you force the application to save all the settings end user have applied to the DockManager. If you need to load back these settings you need to use LoadComponentSettings method. SaveAsXML at other side allows you to serialize the docked window information. You can deserialize and load back this information by calling LoadFromXML method. Please note you cannot pass the XML created by SaveSettings property to the LoadFromXML method – this will throw an exception.
One more point if you need to be able to serialize your custom control you need to add Serializable attribute to your MyDockManager class as well as to implement the New subroutines of UltraDockManager base class. Please check the attached sample for reference.
Please let me know if you need any additional information.