Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShowMessageAsync above modal window #1974

Closed
Dimigergo opened this issue Jun 12, 2015 · 4 comments
Closed

ShowMessageAsync above modal window #1974

Dimigergo opened this issue Jun 12, 2015 · 4 comments
Milestone

Comments

@Dimigergo
Copy link

Hello,

I would like to use the ShowMessageAsync method to show a message when a modal dialog window is opened.
My possibilities:

  1. Message window parent is the modal window. In this case the message is shown only in the smaller dialog window. Only the modal window goes darker.
  2. Message window parent is the main application window. It is ok, the message is shown (going dark) all the full screen, but the dialog window is still white, and top, and hide the message window.
  3. Use External dialog window - Everything is ok, but in this case every message window is styled from external dialog window, but the "YesNo" message dialogs has another style (going darker).

I would like to use the same style for my application, so my best choice would be the 2. possibility, but the modal dialog hides my message. :(

Thanks in advance!

@IsNull
Copy link
Contributor

IsNull commented Jun 26, 2015

I face the same issue (version 1.1.2). Displaying a MessageBox ontop of a modal dialog or the progress dialog does not work. Actually,it is a general problem: There can be only be one integrated modal dialog, and if you atempt to show a modal dialog while already one is being shown, it just does not apear at all.

Maybe it is not to hard to enhance the integrated modal dialgo system so that it supports stacking multiple dialogs. This would then allow to open any number of modal dialogs / message boxes and they would just be displayed on top of each other.

@thoemmi
Copy link
Collaborator

thoemmi commented Jun 26, 2015

I encountered the same issue. At least #1998 improves the overlay handling.

However, the current implementation is not suited to have multiple dialogs (and message boyes) open, e.g. all dialogs but the topmost should be covered by the overlay.

@IsNull
Copy link
Contributor

IsNull commented Jun 26, 2015

I just digged a bit into the dialog code. The DialogManager Util does not much more than adding the dialog visual to the internal Grid metroDialogContainer Grid of the MetroWindow. I think that just adding more dialog views there should pretty much have the desired effect since they would just overlap.

Wont be perfect but still better than just consuming the whole dialog / message box. I will try to patch this and allow simple stacking of the dialogs.

@thoemmi
Copy link
Collaborator

thoemmi commented Jun 26, 2015

You'll need another grid behind the overlay control. metroDialogContainer must contain the topmost dialog only, all other dialogs must be put into a "metroInactiveDialogContainer".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants