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

SplitView overriding LightDismissLayer to set opacity and color #3661

Closed
AKruimink opened this issue Oct 26, 2019 · 0 comments · Fixed by #3664
Closed

SplitView overriding LightDismissLayer to set opacity and color #3661

AKruimink opened this issue Oct 26, 2019 · 0 comments · Fixed by #3664
Milestone

Comments

@AKruimink
Copy link
Contributor

AKruimink commented Oct 26, 2019

When a SplitView is being used and the DisplayMode is set to either Overlay or CompactedOverlay whenever the pane is open or closed the storyboard sets the visibility of LightDismissLayer which functions as a overlay on the SplitView content.

By default the Rectangle is set to transparent and does not apply any Opacity.
Is there anyway to override this to have the LightDismissLayer set a different color and an Opacity so it could be used as a gray-out of the main content when the Pane opens (like Drawers in Material Design).

I can just set a Rectangle in the Content of the splitview, but it seems a waste to do that when the SplitView itself already has an overlaying Rectangle.

punker76 added a commit to timunie/MahApps.Metro that referenced this issue Nov 2, 2019
- Add new OverlayBrush dependency property that enables using an custom Overlay
@punker76 punker76 added this to the 2.0.0 milestone Nov 2, 2019
amkuchta pushed a commit to amkuchta/MahApps.Metro that referenced this issue Nov 19, 2019
- Add new OverlayBrush dependency property that enables using an custom Overlay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants