Comments (3)
Now that I've updated the WP project from SL 8.0 to 8.1, many more url are too long (so it seems that % has nothing to do with it, just a coincidence that the two long paths where the only ones that contained %).
So I've searched Wiki for alternative path to similar images and updated the source with shorter urls.
from xamarin.forms-monkeys.
Here the source with shorter urls:
namespace Monkeys.ViewModels
{
public class MonkeysViewModel
{
public ObservableCollection<Monkey> Monkeys { get; set; }
public ObservableCollection<Grouping<string, Monkey>> MonkeysGrouped { get; set; }
public MonkeysViewModel()
{
Monkeys = new ObservableCollection<Monkey>();
Monkeys.Add(new Monkey
{
Name = "Baboon",
Location = "Africa & Asia",
Details = "Baboons are African and Arabian Old World monkeys belonging to the genus Papio, part of the subfamily Cercopithecinae.",
// Image = "http://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Papio_anubis_%28Serengeti%2C_2009%29.jpg/200px-Papio_anubis_%28Serengeti%2C_2009%29.jpg"
Image = "http://upload.wikimedia.org/wikipedia/commons/f/f8/Olivebaboon.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Capuchin Monkey",
Location = "Central & South America",
Details = "The capuchin monkeys are New World monkeys of the subfamily Cebinae. Prior to 2011, the subfamily contained only a single genus, Cebus.",
Image = "http://upload.wikimedia.org/wikipedia/commons/4/40/Capuchin_Costa_Rica.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Blue Monkey",
Location = "Central and East Africa",
Details = "The blue monkey or diademed monkey is a species of Old World monkey native to Central and East Africa, ranging from the upper Congo River basin east to the East African Rift and south to northern Angola and Zambia",
Image = "http://upload.wikimedia.org/wikipedia/commons/thumb/8/83/BlueMonkey.jpg/220px-BlueMonkey.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Squirrel Monkey",
Location = "Central & South America",
Details = "The squirrel monkeys are the New World monkeys of the genus Saimiri. They are the only genus in the subfamily Saimirinae. The name of the genus Saimiri is of Tupi origin, and was also used as an English name by early researchers.",
//Image = "http://upload.wikimedia.org/wikipedia/commons/2/20/Saimiri_sciureus-1_Luc_Viatour.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Golden Lion Tamarin",
Location = "Brazil",
Details = "The golden lion tamarin also known as the golden marmoset, is a small New World monkey of the family Callitrichidae.",
Image = "http://upload.wikimedia.org/wikipedia/commons/5/53/Golden_Lion_Tamarin_Leontopithecus_rosalia.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Howler Monkey",
Location = "South America",
Details = "Howler monkeys are among the largest of the New World monkeys. Fifteen species are currently recognised. Previously classified in the family Cebidae, they are now placed in the family Atelidae.",
Image = "http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Alouatta_guariba.jpg/200px-Alouatta_guariba.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Japanese Macaque",
Location = "Japan",
Details = "The Japanese macaque, is a terrestrial Old World monkey species native to Japan. They are also sometimes known as the snow monkey because they live in areas where snow covers the ground for months each",
Image = "http://upload.wikimedia.org/wikipedia/commons/c/c1/Macaca_fuscata_fuscata1.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Mandrill",
Location = "Southern Cameroon, Gabon, Equatorial Guinea, and Congo",
Details = "The mandrill is a primate of the Old World monkey family, closely related to the baboons and even more closely to the drill. It is found in southern Cameroon, Gabon, Equatorial Guinea, and Congo.",
Image = "http://upload.wikimedia.org/wikipedia/commons/7/75/Mandrill_at_san_francisco_zoo.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Proboscis Monkey",
Location = "Borneo",
Details = "The proboscis monkey or long-nosed monkey, known as the bekantan in Malay, is a reddish-brown arboreal Old World monkey that is endemic to the south-east Asian island of Borneo.",
Image = "http://upload.wikimedia.org/wikipedia/commons/0/09/Portrait_of_a_Proboscis_Monkey.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Spider Monkey",
Location = "Central and South America",
Details = "Spider monkeys of the genus Ateles are New World monkeys in the subfamily Atelinae, family Atelidae. Like other atelines, they are found in tropical forests of Central and South America, from southern Mexico to Brazil.",
Image = "http://upload.wikimedia.org/wikipedia/commons/8/83/Spider_monkey_-Belize_Zoo-8b.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Saki Monkey",
Location = "South America",
Details = "Sakis, or saki monkeys, are any of several New World monkeys of the genus Pithecia.[1] They are closely related to the bearded sakis of genus Chiropotes.",
Image = "http://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/WhiteFacedSaki.jpg/200px-WhiteFacedSaki.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Emperor Tamarin",
Location = "Amazon Basin",
Details = "The emperor tamarin, is a species of tamarin allegedly named for its resemblance to the German emperor Wilhelm II. It lives in the southwest Amazon Basin, in east Peru, north Bolivia and in the west Brazilian states of Acre and Amazonas",
Image = "http://upload.wikimedia.org/wikipedia/commons/5/55/Tamarin_portrait.JPG"
});
Monkeys.Add(new Monkey
{
Name = "Spectacled Langur",
Location = "Malaysia",
Details = "The dusky leaf monkey, spectacled langur, or spectacled leaf monkey (Trachypithecus obscurus) is a species of primate in the Cercopithecidae family. It is found in Malaysia, Burma, and Thailand.",
Image = "http://upload.wikimedia.org/wikipedia/commons/7/7a/Spectacled_langur.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Colobus Monkey",
Location = "Africa",
Details = "Black-and-white colobuses (or colobi) are Old World monkeys of the genus Colobus, native to Africa. They are closely related to the brown colobus monkeys of genus Piliocolobus.[1] The word 'colobus' comes from Greek κολοβός kolobós ('docked'), and is so named because in this genus, the thumb is a stump. Colobuses are herbivorous, eating leaves, fruit, flowers, and twigs. Their habitats include primary and secondary forests, riverine forests, and wooded grasslands; they are found more in higher-density logged forests than in other primary forests. Their ruminant-like digestive systems have enabled these leaf-eaters to occupy niches that are inaccessible to other primates.",
Image = "http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Colubusmonkey.JPG/200px-Colubusmonkey.JPG"
});
Monkeys.Add(new Monkey
{
Name = "De Brazza's Monkey",
Location = "Africa",
Details = "De Brazza's monkey (Cercopithecus neglectus) is an Old World monkey endemic to the wetlands of central Africa. It is one of the most widespread African primates that live in forests.",
Image = "http://upload.wikimedia.org/wikipedia/commons/e/e1/Cercopithecus_neglectus.jpg"
});
Monkeys.Add(new Monkey
{
Name = "Chimpanzee",
Location = "West and Central Africa",
Details = "Chimpanzees, sometimes colloquially chimps, are two extant hominid species of apes in the genus Pan. The Congo River divides the native habitats of the two species",
Image = "http://upload.wikimedia.org/wikipedia/commons/6/62/Schimpanse_Zoo_Leipzig.jpg"
});
var sorted = from monkey in Monkeys
orderby monkey.Name
group monkey by monkey.NameSort into monkeyGroup
select new Grouping<string, Monkey>(monkeyGroup.Key, monkeyGroup);
MonkeysGrouped = new ObservableCollection<Grouping<string, Monkey>>(sorted);
}
}
}
from xamarin.forms-monkeys.
One more note, about memory consumption: Didn't tried with WP Silverlight 8.0, but with 8.1 version you need to run the app on a full memory device, because with 512 emulator the app runs out of memory really soon, sometimes just showing the list can cause it.
from xamarin.forms-monkeys.
Related Issues (20)
- Monkeys-Code-UI - screen on iPhone 4s after first deploy HOT 3
- Sir,new problem HOT 1
- Xamarin Forms Device orientation change and CarouselView on IPhone HOT 3
- ItemSelected is not fired when user click on an item
- Carouselview creates 2 instances of each control it manages
- Tap GestureRecognizer not working for Android platform HOT 2
- App crashes if the swipe is set between two images in the carousel view
- indicator
- Error : System.InvalidOperationException: Sequence contains more than one element HOT 1
- Are Indicators available ?
- After Update to Xamarin Forms 4.1
- Compiled Bindings break separation of responsability ? HOT 1
- Changing the ViewModel
- Problem after migrating to Xamarin.Forms 1.3 HOT 1
- Monkeys.iOS project in XAML solution will not load
- System.MethodAccessException in CS file for CarouselView ItemsSource HOT 1
- CarouselView does not update when ItemProperty is changed. HOT 1
- CarouselView inside ListView doesn't work correctly in UWP
- Could not load type 'Xamarin.Forms.Platform.CarouselViewRenderer'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin.forms-monkeys.