Serialization problem

2 posts, 0 answers
  1. kj
    kj avatar
    12 posts
    Member since:
    Jun 2010

    Posted 16 Aug 2010 Link to this post

    Hi,

    I have several problem when trying to develop app by RadDock control.

    1. I use method "SaveToXml"  by saving as Strem or TextWritter format, but it does not work, could you give me a simple example? In my App, I want to save as System.IO.Stream and then save in memory.
    Dim stream as System.IO.Stream
      
    RadDock1.SaveToXml(stream)

    2. Is there any property I can set to restrict the ToolWindow and do not let it be dragging outside the RadDock?

    3. Can I disable the center image of DockingGuideTemplate to restrict the ToolWindow became TabbedDocument, like this http://www.telerik.com/help/silverlight/raddocking-features-compass.html
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 20 Aug 2010 Link to this post

    Hello kj,

    Thank you for writing and sorry for the delayed response.

    In regards to your first question, could you please try using the following declaration of your stream:

    Dim stream As New FileStream("C:\test.txt", FileMode.Append)

    Additional information regarding saving and loading layouts can be found in this help article.

    With regards to your second question, I can suggest you to remove the floating option from the AllowedDockStates collection of the tool windows. Please consider the following snippet:

    ToolWindow1.AllowedDockState = ToolWindow1.AllowedDockState And Not AllowedDockState.Floating

    Information about your last question can be found in this help article - Using the DragDropService.
     
    I hope you find the information above useful. Let me know if I can assist you further.

    Greetings,
    Stefan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top