I am building a WPF application in C#.NET and I would like to grey out the window and display a StackPanel in the centre, if a condition is true, like the glass pane in Java. I will be selling my application so I would prefer not that have to ship another licence with it, and it really needs to be free.
Is there any code to let me do this?
Just apply a
MonochromeEffect
from the WPF Shader Effect Library whenever you popup a dialog:When opening a dialog:
When closing a dialog: