开发者

Wpf Main Window Get Minimized

开发者 https://www.devze.com 2023-03-29 22:04 出处:网络
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.

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

精彩评论

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