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

Toolwindow "borders" on Windows XP

2 Answers 109 Views
Window
This is a migrated thread and some comments may be shown as answers.
Licensing
Top achievements
Rank 1
Licensing asked on 16 Dec 2011, 02:09 PM
Hello!

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 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 21 Dec 2011, 01:40 PM
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);
 
    pane.MakeFloatingDockable();
}

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 >>

0
Licensing
Top achievements
Rank 1
answered on 21 Dec 2011, 02:17 PM
Thank you! Suggested solution works. 
Tags
Window
Asked by
Licensing
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Licensing
Top achievements
Rank 1
Share this question
or