Skip to main content

Posts

Showing posts with the label Silverlight

New Silverlight 5 features in The Cornball

The release of Silverlight 5 is allegedly the last major release of Silverlight , but it brought some great stuff that I have now incorporated in the latest release of The Cornball . There are a lot of good descriptions and even video samples of the new features in  What's new in Silverlight 5 . These are the two new features that I am using in The Cornball . Mouse Button Double Click Previously I have used a custom implementation with a timer to capture double clicks on the cards. But since this feature finally is included in the framework I decided to use that instead. The MouseButtonEventArgs now has a ClickCount property which simply indicates the number of times the mouse button was clicked. That leaves us with a much cleaner implementation of the single and double click scenario. private void CardMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { switch (e.ClickCount) { case 1: // Handle single click break; case 2: ...

Getting started with Silverlight and Bing Maps

I have a relatively new found love for Silverlight, and when I got the chance to create a demo with Silverlight and Bing Maps I got very excited. The application gets objects from an existing Web Service. The objects contains meta data and coordinates in the format SWEREF 99. On silverlight.net there are information on how to get started with Silverlight. In addition, this is what you need to do to get started with Silverlight and Bing Maps: Download and install Bing Maps Silverlight Control SDK . Create an account at Bing Maps Account Center to be able to create Bing Maps Keys. In the Silverlight applicationen you only need to add a reference to Microsoft.Maps.MapControl.dll, and after that you are ready to use Bing Maps in Silverlight. <UserControl x:Class="SilverlightApplication1.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://...

Getting started with Silverlight

In my work with the Cornball as my first Silverlight project I have had to solve a huge amount of problems which turned out to be quite a high threshold before I could get started with the development for real. Not the least in the difference between a WinForms application and a Silverlight application. In this post I will mention a couple of the things i encountered. Splash Screen/Preloader The builtin preloader in Silverlight does not look too bad, but it is definately more fun to create a custom preloader to fit with the rest of the application. I choose to create a very simple but functional preloader. First I had to include all the images as resources in the application for the preloader to actually have a purpose. By adding the images to the project and select Resource as Build Action the images will be included in the XAP-file. To show the images in the application, something of the following will do. XAML <Image Name="Card" Source="/SilverlightApplicatio...

Scott Guthrie in Stockholm

Today  Scott Guthrie  visited Stockholm and Chinateatern to talk about the news in Visual Studio 2010 , ASP.NET 4, ASP.NET MVC 2 och Silverlight 4. I could sum this up with just one word: awesome! As usual I get incredibly excited to get my hands on all of these new cool stuff and I am really longing for the release of  Visual Studio 2010  . Until further notice I have to settle with playing around with the beta 2 at home. I am not going to go through all of the news in the products, because it is available in so many other places, such as  Scott Guthrie's blog . He has among other things written a series of posts where he deals with the news in  Visual Studio 2010  . Much of what was shown today I have already seen or read about on various blogs, but one thing that I completely missed is the  IIS SEO Toolkit . It is simply a tool that is installed as an addition to IIS 7 and analyzes the search engine friendliness of any public web site a...