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

Update GradientOrigin property to align with WPF naming #2181

Merged
merged 3 commits into from
Mar 29, 2020

Conversation

marcelwgn
Copy link
Collaborator

@marcelwgn marcelwgn commented Mar 27, 2020

Description

Update naming from "GradientOriginOffset" to "GradientOrigin" and change the offsetting behavior from Center to TopLeft.

Motivation and Context

Closes #2180

How Has This Been Tested?

Ran interaction tests

Screenshots (if appropriate):

@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label Mar 27, 2020
@ranjeshj ranjeshj requested a review from jesbis March 27, 2020 17:22
@ranjeshj ranjeshj added area-RadialGradientBrush team-Controls Issue for the Controls team labels Mar 27, 2020
@ranjeshj ranjeshj requested a review from codendone March 27, 2020 17:23
@ranjeshj ranjeshj removed the needs-triage Issue needs to be triaged by the area owners label Mar 27, 2020
@marcelwgn marcelwgn changed the title Update GradientOffset property to match specs as outlined by #2180 Update GradientOrigin property to align with WPF naming Mar 28, 2020
@ranjeshj
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ranjeshj ranjeshj merged commit 9660811 into microsoft:master Mar 29, 2020
@michael-hawker
Copy link
Collaborator

@chingucoding want to update the PR description for history with the property name fix as well to GradientOrigin?

@marcelwgn
Copy link
Collaborator Author

@michael-hawker Thanks for pointing that out, fixed now!

@MikeHillberg
Copy link
Contributor

In addition to the naming, we should be aligning value spaces: GradientOrigin, EllipseCenter, and EllipseRadius should be ratios ([0,1]) rather than percentages ([0,100]).

@ranjeshj
Copy link
Contributor

ranjeshj commented Mar 30, 2020

In addition to the naming, we should be aligning value spaces: GradientOrigin, EllipseCenter, and EllipseRadius should be ratios ([0,1]) rather than percentages ([0,100]).

tracking via #2193

What does it mean for Radius to be 0 to 1 ?

@marcelwgn marcelwgn deleted the radialgradientbrush-specalign branch March 30, 2020 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update RadialGradientBrush.GradientOriginOffset to GradientOrign and default to .5, .5
5 participants