MainWindow.Dimm();

Topics: Issues / bugs, Questions
Feb 14, 2013 at 2:50 PM
Hello
Catel.Environment.MainWindow.Dimm();
has not the same effect like in the IPleaseWaitService.
In the IPleaseWaitService the MainWindow is much more darker and blurred.

Why?
Feb 14, 2013 at 3:14 PM
I truly have no idea why. It simply does the same thing.
Feb 15, 2013 at 6:41 AM
?? Strange.

Can you reproduce that?
Feb 15, 2013 at 7:49 AM
Haven't tried. We have a lot of support calls (also outside these forums) and we also have a regular job which is very busy.

So it might be boring to read that we want a repro for every situation, but we had too many cases in the past where we put 30 - 60 minutes in a repro and then it seems it was a "client" issue. So if you want us to take a look at it, please provide a repro.
Feb 15, 2013 at 9:04 AM
Ok.

Let's see. But an other question to the Dimm().

I show a window and Dimm the MainWindow. In this window I show a messagebox with the messageservice. Write my own messageservice and override the Show method.

In this method i call again Catel.Environment.MainWindow.Dimm(); and at the end of the method Catel.Environment.MainWindow.Undimm();

But thats a problem in this case. The Messagebox is closed but the Window still is shown.

So is it possible to ask if the MainWindow is already dimmed, don't dimm and undimm again?

Or how can I solve this problem.
Feb 15, 2013 at 9:29 AM
Ok. The first problem is solved.

I have also to call Catel.Environment.MainWindow.Blur() too, not only Catel.Environment.MainWindow.Dimm();

But the second propblem is still alive.
Feb 15, 2013 at 10:50 AM
Solved the second problem with the IsHitTestVisible Property.
Feb 19, 2013 at 7:19 PM
Thanks for letting us know. This might be very useful for others as well.