icsharpcode / WpfDesigner

The WPF Designer from SharpDevelop
MIT License
949 stars 251 forks source link

Width of the window when you run test isn't proportional #17

Closed mandicmarko closed 8 years ago

mandicmarko commented 8 years ago

When i'm created my window in XamlDesigner and go to Test->run, width of the window is bigger than in XamlDesigner. For example: default width is 640 and height is 480 when i run test first time width is bigger than 640, then i close the window and change width to 641, and back to 640, and then i run again, and the window is ok.

mandicmarko commented 8 years ago

this is when i run it for the first time, look at the width first run

mandicmarko commented 8 years ago

and this is when i run for second time, look at the width. second run

mandicmarko commented 8 years ago

It seems that in the file NewFileTemplate.xaml should add default width and height of the window like this: `<Window Width="640" Height="480" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

`

jogibear9988 commented 8 years ago

I can change the template... (and will do), but the Projects that come with the designer, are only usage examples, not production apps!

jogibear9988 commented 8 years ago

Fixed in https://github.com/icsharpcode/WpfDesigner/commit/6775dbfe9e39806d7ee200a68e67bb5a0cb5ac6b