Toolwindow "borders" on Windows XP

3 posts, 1 answers
  1. Licensing
    Licensing avatar
    31 posts
    Member since:
    Sep 2011

    Posted 16 Dec 2011 Link to this post


    Our new issue is based on  previous one. This problem is  also observed on Windowx XP only. The idea is to create floating toolwindow at the center of the screen dynamically. At the moment of toolwindow is created and its position is changed so we can see two "borders" of the toolwindow as it shown at the 1st attached screen shot. We've found partial workaround that hides the second "border" (by decreasing to zero size of the window after creating and increasing it back after changing position), but the 1st border still remains.

    I've created sample project, that demonstrates this issue. 

    Please, help us to solve this visual issue.
  2. Answer
    Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 Dec 2011 Link to this post

    Hi Licensing,

    I took a look at your code and found out that you are moving the tool window when the pane is loaded. I would suggest to try the following approach and check if it resolves the problem or not:
    private void Button1Click(object sender, RoutedEventArgs e)
        var pane = new RadPane();
        var size = RadDocking.GetFloatingSize(pane);
        RadDocking.SetFloatingLocation(pane, new Point(
            Math.Max(0, SystemParameters.PrimaryScreenWidth - size.Width) / 2,
            Math.Max(0, SystemParameters.PrimaryScreenHeight - size.Height) / 2));
        group.AddItem(pane, DockPosition.Center);

    We will also try your application on Windows XP and we will try to find out what causes the issue.

    All the best,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Licensing
    Licensing avatar
    31 posts
    Member since:
    Sep 2011

    Posted 21 Dec 2011 Link to this post

    Thank you! Suggested solution works. 
Back to Top