-
Notifications
You must be signed in to change notification settings - Fork 416
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
[Proposal] TextColorTo extension for ITextStyle #211
Comments
Wouldn't mind doing the implementation (it's already up here 😅), testing and sample. |
Thanks @PieEatingNinjas! I'm happy to Champion this Proposal and we'll discuss it in our Monthly Standup this week! After we vote (and assuming it it is approved by the team), I'll add the |
Approved! Thanks @PieEatingNinjas! Assigned ✅ |
So, there is a tiny little detail that we've overlooked... Sorry I missed this... |
@PieEatingNinjas on MAUI the interfaces just implement |
The idea was to write this code as an extension method for the |
You're totally right, @PieEatingNinjas! I decided that the best way to implement this is to use source generators. This allows us to generate a I just opened the PR and I'd love for you to give it a review! #224 |
I’ll be happy to take a look at it as soon as I can. Curious to see how you used source generators for this. Thanks! |
TextColorTo extension for ITextStyle
Link to Discussion
Extend ColorAnimationExtensions with 'TextColorTo' for ITextStyle
Summary
Extend the
ColorAnimationExtenions
class with aTextColorTo
extension method on theITextStyle
interface, allowing developers to animate the color transition of theTextColor
property of controls implementingITextStyle
.Motivation
Currently the
ColorAnimationExtensions
class has 1 methodBackgroundColorTo
which helps animating the color transition of aVisualElement
'sBackgroundColor
. Almost the exact same code can be re-used for this proposedTextColorTo
extension method. Effort is low, value is pretty descent asITextStyle
is implemented by several controls.Detailed Design
Usage Syntax
XAML Usage
N/A
C# Usage
The text was updated successfully, but these errors were encountered: