-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Windows] Fix Border content position and clipping #6472
Conversation
Clip the content
Content.RenderTransform = new TranslateTransform() { X = -strokeThickness, Y = -strokeThickness }; | ||
} | ||
|
||
void UpdateClip(IShape? borderShape) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main change for Clipping.
|
||
var strokeThickness = _borderPath.StrokeThickness; | ||
|
||
Content.RenderTransform = new TranslateTransform() { X = -strokeThickness, Y = -strokeThickness }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main change to fix the wrong positioning.
@jsuarezruiz corner radius on that sample seems broken in this PR |
|
Description of Change
This PR introduce changes in the Windows Border to:
Issues Fixed
Fixes #3471
Fixes #5928