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

Save/load layout Height/Width in percentage

3 Answers 53 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Arnstein
Top achievements
Rank 1
Arnstein asked on 22 Mar 2011, 03:54 PM
Hi.
When a Docking is saved the width and height of the splitcontainers are serialized in pixels . If the same layout definition would be used on computers with different resolutions the layout would look different. So I would like to serialize the width and height in percentage rather than pixels. Do you have any suggestions on how this could be accomplished?

Arnstein

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 25 Mar 2011, 03:01 PM
Hi Arnstein,

 
Unfortunately this is not possible with the current version of the RadDocking control. Sorry for any inconvenience caused.

Kind regards,
George
the Telerik team
0
Arnstein
Top achievements
Rank 1
answered on 30 Mar 2011, 08:56 AM
Is it possible to serialize any extra information? In the elementsaving event I'd like to add values for the Splitcontainers that I could grab when loading the layout again..

Regards,
Arnstein
0
Accepted
George
Telerik team
answered on 04 Apr 2011, 09:33 AM
Hello Arnstein,

 
RadDocking control saves only the information that's needed to load the layout. I would suggest you to set for SerializationTag this extra information. You could get the SerializationTag from the saved elements using the ElementLoading or ElementLoaded events. For more information about these events, please refer to our online documentation - http://www.telerik.com/help/wpf/raddocking-save-load-the-content-of-the-panes.html

I hope this helps.

All the best,
George
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
Docking
Asked by
Arnstein
Top achievements
Rank 1
Answers by
George
Telerik team
Arnstein
Top achievements
Rank 1
Share this question
or