public void Reload() { var list = new List <ListHeavyItem>(); string[] images = new string[50]; for (int i = 0; i < images.Length; i++) { images[i] = Helpers.GetImageUrl(i); } var howMuch = images.Length; var howManyTimes = 10; for (int j = 0; j < howManyTimes; j++) { for (int i = 0; i < howMuch; i++) { var item = new ListHeavyItem() { Image1Url = images[i], Image2Url = images[i], Image3Url = images[i], Image4Url = images[i], }; list.Add(item); } } Items = new ObservableCollection <ListHeavyItem>(list); }
public void GenerateSampleData() { var list = new ObservableCollection <ListHeavyItem>(); string[] images = { "https://farm8.staticflickr.com/7292/8730172244_fc908366de_z_d.jpg", "https://farm8.staticflickr.com/7236/7171671407_1671ccd763_z_d.jpg", "https://farm4.staticflickr.com/3725/13839923294_d583bb8c21_z_d.jpg", "https://farm7.staticflickr.com/6135/5952249358_72202c3d82_z_d.jpg", "https://farm6.staticflickr.com/5827/20828815605_dd57ee2575_z_d.jpg", "https://farm3.staticflickr.com/2560/4181767596_0d0f971143_z_d.jpg", "https://farm6.staticflickr.com/5240/14213434134_25c913e7c7_z_d.jpg", "https://farm8.staticflickr.com/7635/16823997277_9455dc4df1_z_d.jpg", "https://farm9.staticflickr.com/8369/8529775981_e18941218e_z_d.jpg", "https://farm6.staticflickr.com/5337/9624202634_bb6fd9cf8b_z_d.jpg", "https://farm4.staticflickr.com/3826/13304885523_f9fd599673_z_d.jpg", "https://farm8.staticflickr.com/7421/13976697616_6fe78de2a2_z_d.jpg", "https://farm9.staticflickr.com/8612/15473104983_a7b807577a_z_d.jpg", "https://farm6.staticflickr.com/5211/5384756951_7a9465de30_z_d.jpg", "https://farm5.staticflickr.com/4141/4796759387_ebeec9a22e_z_d.jpg", "https://farm8.staticflickr.com/7304/13408556934_a462fc3056_z_d.jpg", "https://farm8.staticflickr.com/7472/15946946349_e9ae0cf37a_z_d.jpg", "https://farm3.staticflickr.com/2902/14357636976_2b3a93f86a_z_d.jpg", "https://farm6.staticflickr.com/5534/11476526956_3afb34122f_z_d.jpg", "https://farm6.staticflickr.com/5328/8979116312_cdb493d348_z_d.jpg", "https://farm4.staticflickr.com/3825/10522948753_9859b365a7_z_d.jpg", "https://farm1.staticflickr.com/342/18427359388_758337aa67_z_d.jpg", "https://farm5.staticflickr.com/4011/4308181244_5ac3f8239b.jpg", "https://farm1.staticflickr.com/66/158583580_79e1c5f121_z_d.jpg", "https://farm9.staticflickr.com/8625/15806486058_7005d77438.jpg", "https://farm7.staticflickr.com/6129/5923256699_d7af1a373b_z_d.jpg", "https://farm6.staticflickr.com/5607/15519760371_da01e1042f_z_d.jpg", "https://farm8.staticflickr.com/7442/14220177913_1a4fcc0aa8_z_d.jpg", "https://farm9.staticflickr.com/8190/8097504059_ebb845d404_z_d.jpg", "https://farm8.staticflickr.com/7450/14178722235_f208ef6353_z_d.jpg", "https://farm4.staticflickr.com/3822/11134920205_db415e3d7a_z_d.jpg", "https://farm1.staticflickr.com/681/21141103820_32064b9818_z_d.jpg", "https://farm1.staticflickr.com/44/128608095_67f0721c6d_z_d.jpg", "https://farm9.staticflickr.com/8596/16729860256_672d463e92_z_d.jpg", "https://farm9.staticflickr.com/8058/8213531652_00c55f5fb6_z_d.jpg", "https://farm4.staticflickr.com/3791/18729017954_f55fb8d092_z_d.jpg", "https://farm6.staticflickr.com/5829/22451304710_be02cde686_z_d.jpg", "https://farm6.staticflickr.com/5591/15112444938_886f6160d7_z_d.jpg", "https://farm1.staticflickr.com/732/21559098478_9c4a822d09_z_d.jpg", "https://farm9.staticflickr.com/8877/18600339506_7c440f9928_z_d.jpg", }; var howMuch = images.Length; var howManyTimes = 10; if (Device.OS == TargetPlatform.WinPhone || Device.OS == TargetPlatform.Windows) { howMuch = 10; howManyTimes = 3; } for (int j = 0; j < howManyTimes; j++) { for (int i = 0; i < howMuch; i++) { var item = new ListHeavyItem() { Image1Url = images[i], Image2Url = images[i], Image3Url = images[i], Image4Url = images[i], }; list.Add(item); } } Items = list; }
public void Reload() { var list = new List <ListHeavyItem>(); string[] images = { "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/Steps.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/USStates.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/aa.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/accessible.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/acid.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/adobe.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/alphachannel.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/android.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/anim1.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/anim2.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/anim3.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/atom.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/basura.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/beacon.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/betterplace.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/bozo.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/bzr.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/bzrfeed.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/ca.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/car.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/cartman.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/caution.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/cc.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/ch.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/check.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/clippath.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/compass.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/compuserver_msn_Ford_Focus.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/copyleft.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/copyright.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/couch.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/couchdb.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/cygwin.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/debian.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/decimal.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/dh.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/digg.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/displayWebStats.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/dojo.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/dst.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/duck.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/duke.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/dukechain.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/easypeasy.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/eee.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/eff.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/erlang.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/evol.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/facebook.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/faux-art.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/fb.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/feed.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/feedsync.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/fsm.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/gallardo.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/gaussian1.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/gaussian2.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/gaussian3.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/gcheck.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/genshi.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/git.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/gnome2.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/google.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/gpg.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/gump-bench.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/heart.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/heliocentric.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/helloworld.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/hg0.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/http.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/ibm.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/ie-lock.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/ielock.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/ietf.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/image.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/instiki.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/integral.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/irony.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/italian-flag.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/iw.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/jabber.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/jquery.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/json.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/juanmontoya_lingerie.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/legal.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/lineargradient1.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/lineargradient2.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/lineargradient3.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/lineargradient4.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/m.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/mac.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/mail.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/mars.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/masking-path-04-b.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/mememe.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/microformat.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/mono.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/moonlight.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/mozilla.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/msft.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/msie.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/mt.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/mudflap.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/myspace.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/mysvg.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/no.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/ny1.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/obama.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/odf.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/open-clipart.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/openid.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/opensearch.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/openweb.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/opera.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/osa.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/oscon.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/osi.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/padlock.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/patch.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/paths-data-08-t.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/paths-data-09-t.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/pdftk.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/pencil.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/penrose-staircase.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/penrose-tiling.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/php.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/poi.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/pservers-grad-03-b-anim.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/pservers-grad-03-b.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/pull.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/python.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rack.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/radialgradient1.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/radialgradient2.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rails.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/raleigh.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rdf.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rectangles.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rest.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rfeed.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rg1024_Presentation_with_girl.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rg1024_Ufo_in_metalic_style.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rg1024_eggs.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rg1024_green_grapes.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rg1024_metal_effect.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/ruby.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/rubyforge.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/scimitar-anim.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/scimitar.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/scion.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/semweb.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/shapes-polygon-01-t.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/shapes-polyline-01-t.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/snake.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/star.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/svg.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/svg2009.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/svg_header-clean.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/tommek_Car.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/twitter.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/ubuntu.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/unicode-han.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/unicode.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/usaf.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/utensils.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/venus.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/video1.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/vmware.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/vnu.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/vote.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/w3c.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/whatwg.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/why.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/wii.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/wikimedia.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/wireless.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/wp.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/wso2.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/x11.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/yadis.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/yahoo.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/yinyang.svg", "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/zillow.svg", }; var howMuch = images.Length; var howManyTimes = 10; for (int j = 0; j < howManyTimes; j++) { for (int i = 0; i < howMuch; i++) { var item = new ListHeavyItem() { Image1Url = images[i], Image2Url = images[i], Image3Url = images[i], Image4Url = images[i], }; list.Add(item); } } Items = new ObservableCollection <ListHeavyItem>(list); }