We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Indeterminate state?

Thread ID:

Created:

Updated:

Platform:

Replies:

125027 Jul 15,2016 09:16 AM Jul 18,2016 08:28 AM UWP 1
loading
Tags: SfProgressBar
Deanna Delapasse
Asked On July 15, 2016 09:16 AM

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.



Vijayalakshmi Roopkumar [Syncfusion]
Replied On July 18, 2016 08:28 AM

 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.
 
  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;