public ProviderTemplate(Provider p)
 {
     InitializeComponent();
     this.provider = p;
     this.currentState = ProviderItemState.overview;
     this.fillWithData();
 }
        private void loadProviders()
        {
            Provider p = new Provider();
            p.front_picture = "http://d24w6bsrhbeh9d.cloudfront.net/photo/2165142_460s_v1.jpg";
            p.name = "Provider n�;
            p.pictures_url = new List<string>();
            p.price = "tarifs";
            p.pictures_url.Add("http://d24w6bsrhbeh9d.cloudfront.net/photo/2165142_460s_v1.jpg");
            p.pictures_url.Add("http://d24w6bsrhbeh9d.cloudfront.net/photo/2165142_460s_v1.jpg");
            p.pictures_url.Add("http://d24w6bsrhbeh9d.cloudfront.net/photo/2165142_460s_v1.jpg");

            Provider p2 = new Provider();
            p2.front_picture = "http://d24w6bsrhbeh9d.cloudfront.net/photo/2149770_460s_v1.jpg";
            p2.name = "Provider n�;
            p.pictures_url = new List<string>();
            p.pictures_url.Add("http://d24w6bsrhbeh9d.cloudfront.net/photo/2165142_460s_v1.jpg");
            p.pictures_url.Add("http://d24w6bsrhbeh9d.cloudfront.net/photo/2165142_460s_v1.jpg");
            p.pictures_url.Add("http://d24w6bsrhbeh9d.cloudfront.net/photo/2165142_460s_v1.jpg");

            Provider p3 = new Provider();
            p3.front_picture = "http://d24w6bsrhbeh9d.cloudfront.net/photo/2158212_460s.jpg";
            p3.name = "Provider n�;

            List<Provider> providers = new List<Provider>();
            providers.Add(p);
            providers.Add(p2);
            providers.Add(p3);

            // MainScatterView.ItemsSource = providers.ToArray();

            foreach (Provider pr in providers)
            {
                MainScatterView.Items.Add(new ProviderScatterViewItem(new ProviderTemplate(pr)));
            }
        }