Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

When a xaml file contains a mass of controls, the adorner of the control appears in a wrong position in wpf designer.

$
0
0

Version 4.4.1, 4.4.2 both reappear the bug. I don’t have .net4.5 on my computer, so I don’t know whether Version 5 beta has the same problem.

When I edit a xaml file which contains a mass of buttons, after I select a button, the adorner of the button appears in top left corner of the page in wpf designer, rather than surround the control. It looks like this:

 https://www.dropbox.com/s/j46w6tvogdvlsf0/bug-button.png

But when I select a textbox, it’s OK.

 https://www.dropbox.com/s/t4o7ey9rzt9hr1j/bug-textbox.png

Then I did some experiments, might be helpful to fix the bug.

Only when the number of controls become more than about 130, the bug reappear;

The bug only appear on some kind of control, ContentControl like Button, Label, Groupbox etc, Panel like Canvas, Grid etc.

When the adorner appears in a wrong position, you can still drag the control, and after that it will appear in write position, but the adorner appears in a wrong position after the next select operation. 

Here’s my xaml file, it has nothing special except it contains a mass of buttons.

https://www.dropbox.com/s/e87wywsjbu5qc6w/bug.xaml

I tried to read the source file to fix the problem, but it’s too complexity for me to understand the code now, so I ask for help here.

 

The #develop is a great project, I learned a lot from it, thanks for all the contributors.


Viewing all articles
Browse latest Browse all 1764

Trending Articles