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

Proposal: add CornerRadius properties to the DrawerHost #2333

Merged
merged 2 commits into from May 26, 2021
Merged

Proposal: add CornerRadius properties to the DrawerHost #2333

merged 2 commits into from May 26, 2021

Conversation

StefanoRivolta-Previero
Copy link
Contributor

fixes #2332

Result:

o2o1NHPer4
0NnD4N5Mzh
YOaLU7IclC

It just adds four properties for the CornerRadius of each Drawer. To make it appear like in the Spec and pictures you'll need to specify each corner radius in the property, like this:

<materialDesign:DrawerHost LeftDrawerCornerRadius="0 20 20 0" BottomDrawerCornerRadius="25 25 0 0">

Maybe it could be improved to accept only one number and automatically figure out which two corners to smooth, although that would remove some customization. Not sure what's the right way

Added four DependencyProperties, one for each Drawer, to control the CornerRadi
@Keboo Keboo added this to the 4.1.1 milestone May 26, 2021
@Keboo
Copy link
Member

Keboo commented May 26, 2021

I think the CornerRadius is the right call here. Nice addition!

@Keboo Keboo added enhancement release notes Items are likely to be highlighted in the release notes. labels May 26, 2021
@Keboo Keboo merged commit f9199b4 into MaterialDesignInXAML:master May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement release notes Items are likely to be highlighted in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update DrawerHost to accept a CornerRadius as per Spec
2 participants