This is a migrated thread and some comments may be shown as answers.

Busy indicator and Images

3 Answers 129 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cristovao
Top achievements
Rank 1
Cristovao asked on 12 Jun 2012, 02:50 PM
In the PanAndZoomImage help http://www.telerik.com/help/windows-phone/panandzoomimage-features.html  there's :
The BusyIndicatorStyle property determines the visual style of the busy indicator in PanAndZoomImage. This indicator becomes visible when the Source property points to an image that has to be downloaded or to an image that takes a while to open for some reason. See this help topic for more information. 

Can I use the same principle with the Silverlight image control?
Any examples available?

3 Answers, 1 is accepted

Sort by
0
Vijay
Top achievements
Rank 1
answered on 13 Jun 2012, 04:03 AM
Hello Cristova,

Please find a below example for RadBusyIndicatory. You can customize and append different items that you wish to happen on browser.

XAML Code

<telerik1:RadBusyIndicator ContentPosition="Bottom"
             FontFamily="Verdana" FontSize="22" AnimationStyle="AnimationStyle5"
              Name="radBusy1" Foreground="DeepSkyBlue" Margin="42,202,70,304">
         </telerik1:RadBusyIndicator>

MainPage.cs

public void button1_Click(object sender, RoutedEventArgs e)
      {
          radBusy1.IsRunning = false;
          textBlock3.Text = "";
          if (string.IsNullOrEmpty(textBox1.Text) || string.IsNullOrEmpty(textBox2.Text))
          {
              textBlock3.Text = "Please Enter Some Values";
          }
          else
          {
              radBusy1.IsRunning = true;
              objClient.addCompleted += new EventHandler<addCompletedEventArgs>(add_Call);
              objClient.addAsync(Convert.ToDouble(textBox1.Text), Convert.ToDouble(textBox2.Text));
              textBox1.Text = "";
              textBox2.Text = "";
          }
      }


Thanks and Regards,
Vijay
MVC Corp
0
Cristovao
Top achievements
Rank 1
answered on 13 Jun 2012, 06:54 AM
Not quite what I'm Looking for,,,

what I understood the control is able to is:

I have an <image source={Binding Url}/> and SOMEHOW as the the images is loading from the URL the BusyIndicator is made visible...
0
Victor
Telerik team
answered on 13 Jun 2012, 07:26 AM
Hi Cristovao,

Showing a busy indicator while your image is being downloaded is very easy. If you read the msdn reference for the Image class, you will notice that it has an ImageOpened event. So when you set the Source property of the Image, you also start the busy indicator. When the ImageOpened event fires, download is complete, the image is ready for display and you can stop the busy indicator.

Please write again if you have other questions.

Greetings,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
BusyIndicator
Asked by
Cristovao
Top achievements
Rank 1
Answers by
Vijay
Top achievements
Rank 1
Cristovao
Top achievements
Rank 1
Victor
Telerik team
Share this question
or