Mister Goodcat

Peter's home of all things life

Sunday, 12/11/2011 1:25 PM
by Peter Kuhn
0 Comments

Updated all my Silverlight 5 posts

Sunday, 12/11/2011 1:25 PM by Peter Kuhn | 0 Comments

Now that the final version of Silverlight 5 is released, I've gone through all my posts and articles that were based on the beta or RC version and updated the code or text where applicable. I've also fixed links so they now point to the final documentation. As a convenience, I have compiled a complete list of the changes I've made – which gives you an idea what has changed in the final release compared to the beta/RC versions. More...

Thursday, 11/17/2011 6:22 PM
by Peter Kuhn
0 Comments

Silverlight: Bugs in the multicast client

Thursday, 11/17/2011 6:22 PM by Peter Kuhn | 0 Comments

One of the attendees of my recent webinar on sockets programming for Windows Phone (you can watch it online on Silverlight Show here) brought up a rather complex issue in the Q&A session that I then took offline for further review. As it turns out, what he was facing is not one, but even two bugs in (desktop) Silverlight's multicast client implementation. At first I thought this may be a problem with Silverlight 5, but amazingly everything described here seems to be valid for Silverlight 4 too. I don't know whether this also affects Windows Phone, but since the platforms presumably share that code it's likely. More...

Friday, 9/9/2011 10:43 PM
by Peter Kuhn
2 Comments

Silverlight 5 PInvoke fun - System Font Dialog

Friday, 9/9/2011 10:43 PM by Peter Kuhn | 2 Comments

Edit 2011-12-11: This article is compatible with the final version of Silverlight 5 (5.0.61118.0).

Silverlight 5 has built-in support for Platform Invocation Services, which more often is abbreviated by PInvoke or P/Invoke. If you're not familiar with the topic, you can read a small tutorial here, or an MSDN Magazine article here. In a nutshell, P/Invoke allows you to call into unmanaged code that is located in Win32 dlls on the system. People already have come up with nice short tutorials regarding this, for example how to let your computer beep. However, often P/Invoke is much more complex than these simple examples, especially when you need to move data between the managed and unmanaged world. But on the other hand, these more complex scenarios enable thrilling new possibilities with Silverlight. How about displaying system dialogs, and use the results in your Silverlight application? Let's play some games with fonts! More...

Saturday, 9/3/2011 12:39 AM
by Peter Kuhn
0 Comments

Silverlight 5 Quick Tip: 64-bit Support

Saturday, 9/3/2011 12:39 AM by Peter Kuhn | 0 Comments

Edit 2011-12-11: This article is compatible with the final version of Silverlight 5 (5.0.61118.0).

The first posts with questions about 64-bit support in Silverlight 5 already start to show up. The thing is that the 64-bit version of the plug-in is not installed by default when you install the tools. So even though the documentation says Silverlight 5 has 64-bit support, you are still prompted to install Silverlight when you use a 64-bit browser to access a Silverlight application.

The solution to this is to install the 64-bit runtime manually; the installer can be downloaded from here:

http://www.silverlight.net/downloads

… or by using the direct links here:

Developer Runtime 64-bit for Windows
End-User Runtime 64-bit for Windows

After the installation, you will see that Silverlight content shows up correctly in e.g. IE9 64-bit.

Friday, 6/24/2011 11:46 AM
by Peter Kuhn
0 Comments

Fixing the Housebuilder sample

Friday, 6/24/2011 11:46 AM by Peter Kuhn | 0 Comments

If you are interested in Silverlight 5 and its new 3D graphics capabilities, you probably know about the available samples on MSDN. One of them is the Housebuilder sample John Papa first presented during MIX11. For quite some time I've been struggling with this particular sample, because all I got when I tried to run it on various computers was this:

image

At first I thought it was a bug with Silverlight 5 (it is a beta version after all), but the setups of the computers that showed the problem were so different in both hardware and software that is seemed unlikely. Another computer that was almost identical to one that showed the bug ran the sample without problems. What was the problem? More...

Tuesday, 4/26/2011 3:30 PM
by Peter Kuhn
2 Comments

Silverlight 5 Tidbits–Data binding

Tuesday, 4/26/2011 3:30 PM by Peter Kuhn | 2 Comments

Edit 2011-12-11: This article is compatible with the final version of Silverlight 5 (5.0.61118.0).

This post is part of a mini series about Silverlight 5:

We've seen one of the new features regarding data binding in the first post of this series already: implicit data templates. But wait, there's more in the box! This post looks at some of the minor (yet still important) improvements in Silverlight's data binding features as well as what will change in the tools. More...

Monday, 4/25/2011 3:30 PM
by Peter Kuhn
0 Comments

Silverlight 5 Tidbits–Incremental Search

Monday, 4/25/2011 3:30 PM by Peter Kuhn | 0 Comments

Edit 2011-12-11: This article is compatible with the final version of Silverlight 5 (5.0.61118.0).

This post is part of a mini series about Silverlight 5:

Incremental search (sometimes referred to as "type-ahead search") for items controls is one of the features that business users simply expect as a given. If they have a list of items, they want to be able to select one by simply typing the first few letters on the keyboard. Unfortunately, this feature has been missing in Silverlight until now. To this day, I sometimes was still reusing code I have written for this in the days of Silverlight 2. In this post we'll see how this changes with Silverlight 5. More...

Sunday, 4/24/2011 3:30 PM
by Peter Kuhn
16 Comments

Silverlight 5 Tidbits–Trusted applications

Sunday, 4/24/2011 3:30 PM by Peter Kuhn | 16 Comments

Edit 2011-12-11: This article is compatible with the final version of Silverlight 5 (5.0.61118.0).

This post is part of a mini series about Silverlight 5:

One of the interesting features for enterprise use of Silverlight 5 is the possibility to have trusted applications running in browser. This further simplifies distribution and maintenance of Silverlight applications without giving up the option to use "trusted-only" features. In this article we'll also see what has changed for trusted applications in general compared to Silverlight 4. More...

Saturday, 4/23/2011 3:30 PM
by Peter Kuhn
3 Comments

Silverlight 5 Tidbits–Multiple Windows

Saturday, 4/23/2011 3:30 PM by Peter Kuhn | 3 Comments

Edit 2011-12-10: This article is compatible with the final version of Silverlight 5 (5.0.61118.0).

This post is part of a mini series about Silverlight 5:

Having multiple windows is a common thing in desktop applications, especially in business environments. With Silverlight being positioned as a LOB platform, it was only logical that at some point we would see a feature of multiple windows in Silverlight too. More...

Friday, 4/22/2011 3:30 PM
by Peter Kuhn
0 Comments

Silverlight 5 Tidbits–Markup Extensions

Friday, 4/22/2011 3:30 PM by Peter Kuhn | 0 Comments

Edit 2011-12-10: This article is compatible with the final version of Silverlight 5 (5.0.61118.0).

This post is part of a mini series about Silverlight 5:

Even though all Silverlight developers are using markup extensions all the time, a lot of them are not aware of what they actually are. The XAML parser is able to convert attribute values (strings) into objects. With markup extensions, the parser can be advised to reference an already existing object somewhere else for this. For example, the StaticResource Markup Extension uses a key to evaluate a reference to a resource defined in a resource dictionary. The Binding Markup Extension creates an expression to defer the evaluation until run time, so the actual property value can be retrieved by using the data context. In this post we'll take a look at how you can create your own extensions in Silverlight 5 and what the limitations are. More...