Problem with TryClose on MessageBoxViewModel

Apr 28, 2015 at 9:24 AM
Hallo,
Thank you for sharing the code in WPF platform. Hovewer i have problem with MessageBoxView -> MessageBoxViewModel

void Select(MessageBoxOptions option)
    {
        selection = option;
        TryClose();
    }
TryClose not works in my environment, do you have the same bug?

Regards,
adrian mirek
Nov 7, 2015 at 2:48 AM
Yes I'm having the same issue and can't quite figure it out. I have reported it as an issue. Have you found the solution yet on your own, Adrian? If so can you share the solution?

Regards,


Sean Thomas
Coordinator
Nov 8, 2015 at 5:08 AM
I couldn't figure it out.

Still no solution, it looks like a bug.

Adiel.
Feb 2 at 2:02 PM
Hello, I realise this has been an issue a long time ago. But if it may help someone looking for this.
Provide at least the DeactivateItem in DialogConductorViewModel (it can also call directly the code CloseItem).
That solves it for both the dialogue as well as for the messagebox.
        public void DeactivateItem(object item, bool close)
        {
            CloseItem(item);
        }