DataWindow Maximized not worked correctly.

Topics: Questions
Jan 1, 2013 at 6:17 AM
Edited Jan 1, 2013 at 7:17 AM

Hi, DataWindow WindowState, WindowStartupLocation, Width, Height properties doesn't work correctly. how to solve this problem?

another problem is when using MainWindow as Window (not DataWindow) Commands and all bindings (Title, ...) not worked. I'm using Visual Studio 2012 on windows 8.

Regards

Jan 1, 2013 at 10:05 AM

I find the solution for first issue (Size, StartupLocation, ...) by setting SizeToContent = "Manual"

but second issue still exist.

Regards

Coordinator
Jan 2, 2013 at 2:45 PM

Do you add a behavior to the main window? Otherwise, you will have to handle all view model state transitions yourself. Best is to simply use the DataWindow and set the mode to custom in the constructor.

Jan 2, 2013 at 4:55 PM

Ok. thanks Geert. now i use DataWindow for all of my views and there is no need to original Window.