Indeterminate state?

Hi,

I've looked through the docs for your ProgressBar, but I can't find a combination that would allow indefinite animation like the default control offers.  Is there a way to show the animation (ie the circle spinning) for an indefinite time until I stop it)?    

I know I could just keep going 0-100% and restarting the count, but the default control offers the Indeterminate state which is much easier so I'm hoping you guys offer that somehow as well.



1 Reply

VR Vijayalakshmi Roopkumar Syncfusion Team July 18, 2016 12:28 PM UTC

 Hi Deanna,

Thank you for using Syncfusion Products.

Query 1: Circle spinning Animation and support to Run/Stop it.

This reported requirement can be achieved by ProgressType in SfProgressBar. Please make use of Code snippet in below.
Code: [XAML] 
<notification:SfProgressBar Height="300" Width="500" FontSize="26" BackRimRadius="100" Radius="100" 
StrokeThickness="20" BackRimStrokeThickness="20"  ProgressType="SolidCircular" 
VerticalAlignment="Center" 
x:Name="progressSolid" HorizontalAlignment="Center" 
Value="{Binding Value1}"/> 
 
  
Query 2: How to specify the Timeline for Animation 
  
Please make use of below Code example using DispatcherTimer to specify the timeline for SfProgressBar. 
  
// Initialize the timer 
DispatcherTimer timer; 
timer = new DispatcherTimer() { Interval = Interval }; 
timer.Tick += Timer_Tick; 
timer.Start(); 
  
private void Timer_Tick(object sender, object e) 
{ 
   TimerTick(timer); 
} 
  
private void TimerTick(object param) 
{ 
Value1 += 1.0; 
//setting the time interval 
timer.Interval = TimeSpan.FromSeconds(0.02); 
} 
 
 
Regards, 
Vijayalakshmi V.R.
 
  


Loader.
Up arrow icon