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

Binding CornerRadius to CommandBar.CornerRadius #4749

Merged
merged 5 commits into from
Apr 8, 2021

Conversation

licanhua
Copy link
Contributor

@licanhua licanhua commented Apr 6, 2021

Currently CornerRadius is hard coded ControlCornerRadius. If CommandBar.CornerRadius is supported, we should use CommandBar.CornerRadius

CornerRadius = 2 when CommandBar.IsOpen=true
image

CornerRadius=10 when CommandBar.IsOpen=true
image

CornerRadius=2/10 when CommandBar.IsOpen=false. The CommandBar background is transparent.
image

Known issue:
If the commandbar has background like Red and IsOpen=false, CornerRadius is not supported.
image

But IsOpen=true, we support CornerRadius.
image

CommandBar used Clip to clip the unsupported area, so half of the corner radius will be clipped, so it's hard to support CornerRadius when IsOpen=false.

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Apr 6, 2021
@licanhua
Copy link
Contributor Author

licanhua commented Apr 6, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@licanhua
Copy link
Contributor Author

licanhua commented Apr 6, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@licanhua licanhua marked this pull request as ready for review April 6, 2021 16:55
Copy link
Contributor

@StephenLPeters StephenLPeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕐

Copy link
Contributor

@StephenLPeters StephenLPeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@StephenLPeters StephenLPeters added area-Commanding AppBar, UICommand, MVVM, etc area-UIDesign UI Design, styling team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Apr 7, 2021
@licanhua licanhua merged commit 26ec7ac into master Apr 8, 2021
@licanhua licanhua deleted the user/canhua/commandbar branch April 8, 2021 16:14
Kinnara added a commit to Kinnara/ModernWpf that referenced this pull request Dec 7, 2023
Kinnara added a commit to Kinnara/ModernWpf that referenced this pull request Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Commanding AppBar, UICommand, MVVM, etc area-UIDesign UI Design, styling team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants