Per the Material Design style, a scrim should be used any time the main application should lose focus for a child window. Since it should only apply to child windows, I've restricted what can create the scrim and what can't. The goal here is to eventually allow all children to force a scrim to be shown.
Additionally, this simplifies the necessity to create your own scrim in numerous places and allows library users to invoke the scrim themselves. For now, I've made it as simple as Form.ShowScrim() and Form.HideScrim(). I want to additional features to it in the future, but work has been keeping me from committing much time to this library as I'd like.
Per the Material Design style, a scrim should be used any time the main application should lose focus for a child window. Since it should only apply to child windows, I've restricted what can create the scrim and what can't. The goal here is to eventually allow all children to force a scrim to be shown.
Additionally, this simplifies the necessity to create your own scrim in numerous places and allows library users to invoke the scrim themselves. For now, I've made it as simple as
Form.ShowScrim()
andForm.HideScrim()
. I want to additional features to it in the future, but work has been keeping me from committing much time to this library as I'd like.