Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Timers in Windows Phone 8
Sweta Sinha
Feb 24 2015 1:38 AM
604
Reply
Hi,
I am using Timer to display images after certain time interval.
private void setTimer()
{
DispatcherTimer dt = new DispatcherTimer();
dt.Interval = TimeSpan.FromSeconds(5);
dt.Tick += delegate
{
if (index == 0)
homepageimage.Source = listOfImages[index];
else if (index < listOfImages.Count)
{
homepageimage.Source = listOfImages[index];
}
else
index = -1;
++index;
this.fadeIn.Begin();
};
dt.Start();
}
Their are a total of 5 images in listOfImages.But while displaying it shows only 3 images.I have debugged the code and according to that it is it should show all 5.I don't know why this code is not working as expected.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Date Picker in WP8 set the range
Get the child element of stackpanel in Windows Phone 8