|
namespace SilverlightSmoothSlider
{
using System.Windows.Controls;
using System.Windows.Navigation;
using System.Collections.ObjectModel;
using SmoothSlider;
using System;
/// <summary>
/// Home page for the application.
/// </summary>
public partial class Home : Page
{
/// <summary>
/// Creates a new <see cref="Home"/> instance.
/// </summary>
public Home()
{
InitializeComponent();
this.Title = ApplicationStrings.HomePageTitle;
ObservableCollection<SliderItem> items = new ObservableCollection<SliderItem>();
items.Add(new SliderItem() { Title = "Image1", ImageUrl = new Uri("/SilverlightSmoothSlider;component/Images/Ford_Mustang.jpg", UriKind.Relative) });
items.Add(new SliderItem() { Title = "Image2", ImageUrl = new Uri("/SilverlightSmoothSlider;component/Images/Ghost_Rider.jpg", UriKind.Relative) });
items.Add(new SliderItem() { Title = "Image3", ImageUrl = new Uri("/SilverlightSmoothSlider;component/Images/Glass_Apple.jpg", UriKind.Relative) });
items.Add(new SliderItem() { Title = "Image4", ImageUrl = new Uri("/SilverlightSmoothSlider;component/Images/Gold.jpg", UriKind.Relative) });
items.Add(new SliderItem() { Title = "Image5", ImageUrl = new Uri("/SilverlightSmoothSlider;component/Images/Good_Luck.jpg", UriKind.Relative) });
items.Add(new SliderItem() { Title = "Image1", ImageUrl = new Uri("/SilverlightSmoothSlider;component/Images/Ford_Mustang.jpg", UriKind.Relative) });
items.Add(new SliderItem() { Title = "Image2", ImageUrl = new Uri("/SilverlightSmoothSlider;component/Images/Ghost_Rider.jpg", UriKind.Relative) });
items.Add(new SliderItem() { Title = "Image3", ImageUrl = new Uri("/SilverlightSmoothSlider;component/Images/Glass_Apple.jpg", UriKind.Relative) });
items.Add(new SliderItem() { Title = "Image4", ImageUrl = new Uri("/SilverlightSmoothSlider;component/Images/Gold.jpg", UriKind.Relative) });
items.Add(new SliderItem() { Title = "Image5", ImageUrl = new Uri("/SilverlightSmoothSlider;component/Images/Good_Luck.jpg", UriKind.Relative) });
ctrlSliderControl.Items = items;
}
/// <summary>
/// Executes when the user navigates to this page.
/// </summary>
protected override void OnNavigatedTo(NavigationEventArgs e)
{
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.