Reputation: 77
I am practicing some new wpf stuff and currently reading a book with exercises in them. The exercises uses pages in the wpf application, But a problem occurs when I start the program, the pages doesn't look the way I made them in Visual Studio. For example, I create a TextBox inside a Grid with one cell so it takes up the whole screen in the preview window inside VS. But when the application starts it's as if the whole TextBox got bigger and can't fit the screen so you have to resize the window to see the whole borderof the TextBox. If anyone understands it and knows how to fix it it would be very greatful.
Upvotes: 0
Views: 29
Reputation: 77
I had removed the d:Design from both widh and height. I put them back and now it's working
Upvotes: 1