[Proposal] ProgressBar Animation Behavior
See original GitHub issueProgressBarAnimationBehavior
- Proposed
- Prototype
- Implementation
- iOS Support
- Android Support
- macOS Support
- Windows Support
- Unit Tests
- Documentation
- Sample
Summary
A behavior that animates a ProgressBar based on double AnimateProgress
.
Detailed Design
ProgressBarAnimationBehavior.shared.cs
public class ProgressBarAnimationBehavior : BaseBehavior<ProgressBar>
{
public static readonly BindableProperty ProgressProperty;
public static readonly BindableProperty LengthProperty;
public static readonly BindableProperty EasingProperty;
public double Progress { get; set; }
public uint Length { get; set; }
public Easing Easing { get; set; }
}
Usage Syntax
XAML Usage
<ProgressBar>
<ProgressBarBehaviors>
<toolkit: ProgressBarAnimationBehavior
AnimateProgress = { Binding ProgressValue}
/>
</ProgressBar.Behaviors>
</ProgressBar>
C# Usage
var behavior = new ProgressBarAnimationBehavior();
behavior.SetBinding(ProgressBarAnimationBehavior.AnimateProgressProperty, nameof(ViewModel.ProgressValue);
var progressBar = new ProgressBar();
phoneEntry.Behaviors.Add(behavior);
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (14 by maintainers)
Top Results From Across the Web
ProgressBarAnimationBehavior - .NET MAUI Community ...
The ProgressBar Animation Behavior animates a ProgressBar from its current Progress value to a provided value over time.
Read more >Creating animated progress bar - css
I'm trying to create a animated input/progress bar, but just the untracked part must be animated. @keyframes gradient { 0% { background-position ...
Read more >[css-animations] Proposal for animation triggers, timebases ...
This is a proposal for three new CSS animation properties in Level ... The third, animation-behavior, specifies if concurrent animations on ...
Read more >ProgresBarControl didn't show progress bar when ...
I'm using ProgresWindow with many functions. This behavior same on all. I set WindowsFormSettings.AnimationMode to EnableAll on many project. I ...
Read more >Faster Progress Bars: Manipulating Perceived Duration ...
To investigate how animated ribbing affects perception of progress bar duration, we devised seven ribbed behaviors, described in Table 2. We used the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@brminnick you beat me to it 😄
Thanks @CliffAgius