[Closed] Extend ColorAnimationExtensions with 'TextColorTo' for ITextStyle #203
Replies: 4 comments 6 replies
-
Love it! Let's see if we get any more feedback from the community on this in the next few days, then open a New Feature Proposal! |
Beta Was this translation helpful? Give feedback.
-
I really like this! To overcomplicate the situation is there any sense in considering whether we could combine animations together? I get that we could probably call something like the following: var label = new Label();
await Task.WhenAll(
label.TextColorTo(Colors.Red, 16, 1500, Easing.SinIn),
label.BackgroundColorTo(Colors.Orange, 16, 1000, Easing.SpringIn)); This may well be enough or a user could write their own for more complex scenarios. Or we further expand the compound animations coming soon. This concept is starting to get me thinking about whether this could expose a new way of doing things for the compound animation proposal too. |
Beta Was this translation helpful? Give feedback.
-
Promoted to Proposal 🎉 Adding |
Beta Was this translation helpful? Give feedback.
-
Closed as moved to Proposal #211 |
Beta Was this translation helpful? Give feedback.
-
Currently the
ColorAnimationExtensions
class has 1 methodBackgroundColorTo
which helps animating the color transition of aVisualElement
'sBackgroundColor
.The ITextStyle interface - which is implemented by things like
ILabel
,IButton
,IEntry
, ... - defines aTextColor
property of typeColor
. I can imagine devs might want to animate the transition of the text color of controls that implement this interface.That's why I want to propose adding a
TextColorTo
extension method for theITextStyle
interface:This would allow us to use it for any UI control that implements ITextStyle, like ILabel, IButton, IEntry, etc.
Let's discuss! 🙂
Beta Was this translation helpful? Give feedback.
All reactions