I have child window with Height=300 and Width=400.When i maximize this child window,it gets display on left=0 and top=0 position.I want it to be display in the center of the MainWindow.
I have tried following ways
In Window_StateChanged event, i have tried to change its position as left=100 and Top=140.The values are assigned,but still it displays on left=0 and Top=0 position.
I also tried to change its position in Window_SizeChanged event,but it also did not work.
Then i felt the layout might not refresh,so i refreshed it using this.UpdateLayout(),but not worked.