Exposing properties in Expression Blend

6 04 2011

I work a lot in Microsoft Expression Blend. If you do any Silverlight or WP7 development, you should too. A problem I’ve had lately is when creating a large number of User Controls. I don’t want them to contain the same content, but since they’re custom controls, there is no field for these settings in Blend.

Silverlight Expression Blend

Read the rest of this entry »


Debugging Videos or Camera in WP7

16 03 2011

I’ve today made good progress in the project I’m dedicated to. I amongst other things included a small video clip as a part of the application. As many of you know, video clips are fairly easy to handle in Silverlight. In XAML, it can be as easy as this:

<MediaElement Source="/Videos/MyVideo.wmv" AutoPlay="False"/>

When debugging though, the damned thing refused to work for me. I soon found out this was because of the method of debugging I was using. Here are the tree primary ways of debugging a WP7 application:

1. No phone, debug in emulator.

2. Phone tethered, debug in phone connected to visual studio.

3. Phone disconnected, code pre-deployed running on phone.

It turns out Media Elements will only display when in debug mode 3. Otherwise you’ll just see black or the first frame. This is also true for any camera functionality. If you have issues with your CameraCaptureTasks, try using debug mode 3.


Developer tip #23

Learning Silverlight – Advanced Color Animations

26 04 2010

Unfortunately, I won’t be providing the in depth look at my recent Silverlight project that I promised earlier. It still hasn’t been shown to our prospective customer and it wouldn’t be appropriate to show it publically before that.

Instead, I’ll be breaking down some of the lessons I learned from the project into little segments like this. At one point in the project I wanted to do a more advanced color animation than color to color.

Silverlight Color Animation Keyframe

After the jump

Juicy code… and Superman in bondage.

Read the rest of this entry »

Silverlight 4 PathListBox

1 04 2010

I’ve been catching up on the sessions I missed during MIX10. There were quite a few to say the least. I think that Christian Schormann & Peter Blois’s session on Blend 4 was one of the sessions many visitors missed due to it colliding with Joe Belfiore’s introduction to WP7.

Schormann and Blois talked a lot about a new control called PathListBox, which is totally awesome. Jump with me –>

PathListBox Silverlight Blend

Read the rest of this entry »

Navigating AWAY from your Silverlight page

11 03 2010

Sooner or later you’ll want to send people away from your Silverlight site. Maybe to a friends page or a company’s main site? These are two ways of handling navigation easily.

glimmervoid_basin Silverlight

Read the rest of this entry »

Silverlight Transform – XAML Transformation 101

3 03 2010

One of the many advantages with Silverlight and WPF is how easy it is to transform Images, objects or even entire groups of controls. Here is an example on two ways to bend objects with XAML in a quick fashion

Silverlight XAML Transformation Projection

Read the rest of this entry »

Silverlight 4 Webcam Demo

22 02 2010

During my visit to Finland last month, I got the opportunity to demonstrate some of the new features in Silverlight 4 in demo-form. Today, I’ll review the webcam demo.

Silverlight 4 webcam demo

Read the rest of this entry »