-
I was trying to pop up some dialog just a little bit smaller than the screen instead of opening a new window But it seems to be impossible, the I spent a lot of time to debug (it was so anoying) and finally find these codes in popup.cs
Why does the popup's size is always limited to smaller than 75% of available area and the percentage is not public and how can I change it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I read the code of wpf, but I can not find the answer. As
|
Beta Was this translation helpful? Give feedback.
-
This is for security reasons, creating a full-screen or larger popup could block users form interacting with the app. You cannot change it, it's a constant. If you want to show a dialog, can't you use |
Beta Was this translation helpful? Give feedback.
This is for security reasons, creating a full-screen or larger popup could block users form interacting with the app. You cannot change it, it's a constant. If you want to show a dialog, can't you use
Window.ShowDialog()
?