-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
#1673 Adding a Color property to Light #1698
Conversation
/// <returns>An animation set.</returns> | ||
public static AnimationSet Light( | ||
this FrameworkElement associatedObject, | ||
double distance = 0d, | ||
double duration = 500d, | ||
double delay = 0d) | ||
double delay = 0d, | ||
Color color = default(Color)) |
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.
By default, shouldn't it be Colors.White instead of Black?
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.
good spot, I changed the type to be nullable, so if it detects null it will change it to White. You can't set the Color object as a default parameter as it needs to be a compile time constant.
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.
Seems good.
This PR is linked to unclosed issues. Please check if one of these issues should be closed: #1673 |
Issue: #
#1673
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Defaults to white
PR Checklist
Please check if your PR fulfills the following requirements:
What is the new behavior?
A new Color property which allows you to change the color of the light.
Does this PR introduce a breaking change?
Other information