.net - Does it make sense to set Owner for Dialog window -
if set owner window , show in non-dialog mode 2 things: 1. kid window on top of parent window (while there still access parent window) 2. if close parent window, kid window closed too
in case of dialog window both points not create sense: 1. kid window on top of parent window independently on owner property 2. have no chance close parent window
so right there no sense setting owner property dialog windows or may there arguments that?
as the documentation points out there reasons:
when open kid window calling showdialog, should set owner property of kid window. if don't, users won't able restore both kid window , parent window pressing task bar button. instead, pressing task bar button yield list of windows, including both kid , parent window, them select; selected window restored.
you should set owner property on window that opened calling showdialog ensure right behavior ui automation.
.net wpf
No comments:
Post a Comment