icsharpcode / WpfDesigner

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

DesignPanel Unwanted Enlargement #50

Closed khalili-mahdi closed 6 years ago

khalili-mahdi commented 6 years ago

moving DesignItem to top-left Corner of DesignSurface will make DesignPanel Bigger that is so Annoying . could we completely disable it?

jogibear9988 commented 6 years ago

Again, don't understand your issue

khalili-mahdi commented 6 years ago

we have a design area, we can add DesignItem to DesignSurface you can change DesignItems position by drag and dropping but dragging these to edge of screen making scroll View of DesignPanel Get bigger i want to disable it ,this scroll view cant resize itself when you drag and drop components

jogibear9988 commented 6 years ago

Look at my Example App "MyDesigner" in the Source. If you set Width and Height of the Grid in the Template (Line 23 in MainWindow.xaml.cs)

 x:Name=""rootElement"" Background=""White"" Width=""200"" Height=""200""><Grid  Margin=""100""/></Grid>";

it will not scroll

khalili-mahdi commented 6 years ago

ty it did work