开发者

Wpf Main Window Get Minimized

How can i keep my main window maximized in wpf app. when i open second window and do something in that and close it, my main window get minimized. please help me.

in开发者_Go百科 fact i have three window:

  • A main window that application start with that.
  • A second window that shows a list of entities. with edit, delete and add button.
  • The third window that is for editing the selected entity.

when i close the third and second window, my main window get minimized.

i use the below code for opening second and third windows:

SecondWindow win = new SecondWindow();
win.Owner = this;
win.ShowDialog();

thanx.


I think Your problem is: something about how you show Main-dialog not other Forms!. Can you provide how Show Main-dialog?

also you can try use WindowState="Maximized" on your Main-dialog.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜