icsharpcode / WpfDesigner

The WPF Designer from SharpDevelop
MIT License
958 stars 259 forks source link

can't add same control #16

Closed mandicmarko closed 8 years ago

mandicmarko commented 8 years ago

I can't add same control twice. For example: when i add button, and i want to add another button, i can't. I must add some other control before add button again.

mandicmarko commented 8 years ago

Possible solution is to add lstControls_PreviewMouseLeftButtonDown with same code like lstControls_SelectionChanged. In that way you can select same control (button) twice, and you can change control to textbox for example.

jogibear9988 commented 8 years ago

Where do you have that Problem? In the simple sample? This is only a small preview how to use the component! Look at the "XamlDesigner" example, there this works! There you can also add Controls via Drag Drop!

jogibear9988 commented 8 years ago

Ok, I've fixed it with your changes! But please be next time more specific where you got the error... ;-)

mandicmarko commented 8 years ago

Yes, in the simple sample. In some reason i can't open XamlDesigner example.

jogibear9988 commented 8 years ago

Maybe report your error here as an issue

mandicmarko commented 8 years ago

I managed to open XamlDesigner example. I look forward to solve new issues in your app :)