Programmatically Create, Size and Position Floating Tool Window

2 posts, 0 answers
  1. Sigd
    Sigd avatar
    8 posts
    Member since:
    Oct 2010

    Posted 25 Oct 2010 Link to this post

    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.


  2. Sigd
    Sigd avatar
    8 posts
    Member since:
    Oct 2010

    Posted 25 Oct 2010 Link to this post

    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.
  3. DevCraft banner
Back to Top