Having trouble finding a quick and simple way to customize and add images to pushpins? I came up with the following.
The stardard pushpin looks pretty bad, as you can see, it is just a black square with a pointing arrow.
The easiest way to get rid of it is to set the template of your pushpin to null.
Pushpin myPushpin = new Pushpin();
myPushpin.Template = null;
Continue reading “Simple way to customize pushpins in Bing Maps for WP7”
First, make sure to reference the Microsoft.Phone.Tasks Library
In your XAML you can add a HyperlinkButton with a click even like this:
<HyperlinkButton x:Name="Email" Content="email@example.com" Click="Email_Click"/>
Then use the EmailComposeTask class to bring up the mail client.
private void Email_Click(object sender, RoutedEventArgs e)
EmailComposeTask email = new EmailComposeTask();
email.To = "firstname.lastname@example.org";
email.Subject = "Thanks";
In a similar manner, you instantiate WebBrowserTask to bring up the browser with the provided link
private void MyBlog_Click(object sender, RoutedEventArgs e)
WebBrowserTask web = new WebBrowserTask();
web.URL = "http://www.chrisrios.com";
Continue reading “Open Websites and Emails from a Windows Phone 7 Silverlight App”