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

Programmatically Create, Size and Position Floating Tool Window

1 Answer 228 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Sigd
Top achievements
Rank 1
Sigd asked on 25 Oct 2010, 04:25 PM
I've been struggling with this all day.  I've tried various 'solutions' I've found but I can't get anything to work. Using RadControls for Silverlight  Q1 2010 SP2 in VS2010, Silverlight 4.

I have:- 

 

 

Telerik.Windows.Controls.RadSplitContainer container = new RadSplitContainer();
Telerik.Windows.Controls.RadPaneGroup group = new RadPaneGroup();
Telerik.Windows.Controls.RadPane pane = new RadPane();
pane.Header = "TEST";
pane.Content = new M4.Controls.Links();
group.Items.Add(pane);
container.Items.Add(group);
container.Height = 500;  //not working
container.Width = 500;  // not working
container.InitialPosition = Telerik.Windows.Controls.Docking.DockState.FloatingDockable;
myRadDocking1.Items.Add(container);

 


The setting of the Height and Width doesn't work, and where/how do I set the initial position for the floating window?

Many thanks in advance,
Sigd.


1 Answer, 1 is accepted

Sort by
0
Sigd
Top achievements
Rank 1
answered on 25 Oct 2010, 04:55 PM
Damn it!   As always as soon as you ask someone,  you figure out the answer !

Add:-
RadDocking.SetFloatingLocation(container, new Point(300, 300));
RadDocking.SetFloatingSize(container, new Size(800, 600));

Thanks anyway.
Tags
Docking
Asked by
Sigd
Top achievements
Rank 1
Answers by
Sigd
Top achievements
Rank 1
Share this question
or