DataWindow Maximized not worked correctly.

Topics: Questions
Jan 1, 2013 at 7:17 AM
Edited Jan 1, 2013 at 8: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.


Jan 1, 2013 at 11:05 AM

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

but second issue still exist.


Jan 2, 2013 at 3: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 5:55 PM

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