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

Fixed Corner Radius Issue with InkToolbar Custom Tool Button #6724

Merged
merged 4 commits into from
Feb 28, 2022
Merged

Fixed Corner Radius Issue with InkToolbar Custom Tool Button #6724

merged 4 commits into from
Feb 28, 2022

Conversation

hassaanmasood
Copy link
Contributor

Description

Corner Radius property was missing on the InkToolbarCustomToolButton Style. I have just added a Corner Radius property on the Root Grid of the button. It was already available for other buttons in toolbar but not for CustomToolButton.

Motivation and Context

It was was causing the Custom Tool Buttons to have sharp corner and was not aligning with the rest of the buttons.
Partially fixes Ticket 5844

How Has This Been Tested?

Tested in local environment. Screenshot attached.

Screenshots (if appropriate):

ToolbarFix

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Feb 15, 2022
Height="{StaticResource InkToolbarButtonHeight}">

Height="{StaticResource InkToolbarButtonHeight}"
contract7Present:CornerRadius="{TemplateBinding CornerRadius}" >
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the fix! could you please also add

contract7NotPresent:CornerRadius="{ThemeResource ControlCornerRadius}"

like you can see here:

contract7NotPresent:CornerRadius="{ThemeResource ControlCornerRadius}">
so that this works downlevel as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey Stephen, I did not add 'contract7NotPresent' because I did not find it on any other style/template in the file InkToolbar_themeresources.xaml. If it has to be added then I think we should add this to other styles/templates in this file as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, I think that is an oversight, however we can save it for a later update.

@StephenLPeters
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters merged commit 4aeae13 into microsoft:main Feb 28, 2022
@StephenLPeters StephenLPeters added team-Controls Issue for the Controls team team-Ink and removed needs-triage Issue needs to be triaged by the area owners labels Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InkToolbarCustomToolButton Does not look the same as built-in InkToolbarToolButtons
2 participants