This is a migrated thread and some comments may be shown as answers.

Serialization problem

1 Answer 94 Views
Dock
This is a migrated thread and some comments may be shown as answers.
kj
Top achievements
Rank 1
kj asked on 16 Aug 2010, 05:31 PM
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

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 20 Aug 2010, 11:45 AM
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
Tags
Dock
Asked by
kj
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or