28
Jan/10
0

NETDUG – Silverlight/WPF Multi-Targeting Presentation Sample Code

If you attended the NETDUG user group meeting last Thursday night and would like to download the sample code for my Silverlight/WPF Multi-Targeting presentation, you can download it here.
Recap:
The Silverlight and WPF platforms are very similar, but they do not have binary compatibility; this means that an assembly compiled for one platform cannot execute [...]

28
Jan/10
0

The Entity Framework and the “The invoked member is not supported in a dynamic assembly” exception.

When you create an entity model, a few mapping files are created for you; namely .cdsl, .ssdl, and .msl.  Right about now you may be saying to yourself, I don’t see those files anywhere. That is because they are actually stored as a resource in the assembly you created your entity model.  When you create [...]

24
Dec/09
0

If (Successful) { throw new Exception(); }

So, I was installing Visual Studio 2010 Ultimate Beta 2 on one of my machines the other day and the funniest thing happened.  After it successfully installed, I was prompted to send an error report.

Since when is a successful operation a problem?  Now, of course, I am assuming this is intentional and is transmitting [...]

4
Dec/09
0

BSDG – Silverlight/WPF Multi-Targeting Presentation Sample Code

If you attended the BSDG user group meeting last night and would like to download the sample code for my Silverlight/WPF Multi-Targeting presentation, you can download it here.
Recap:
The Silverlight and WPF platforms are very similar, but they do not have binary compatibility; this means that an assembly compiled for one platform cannot execute on [...]

23
Nov/09
0

Silverlight 4 Beta – Using Silverlight as Drop Target

Have you ever wanted to give the user the ability to drag a file from you desktop or file explorer onto your Silverlight application? Well, up until now you couldn’t. What’s that sound? It’s a bird… it’s a plane… no, it’s Silverlight 4 Beta.  Yes, Silverlight 4 Beta is coming to the rescue and giving [...]

23
Nov/09
0

Silverlight 4 Beta – Text Trimming

Before Silverlight 4 if you wanted to dynamically add ellipses (the commonly used … to show that the sentence continues), you have to invent your own implementation which usually involves creating your own control that wraps a text based control and then manipulate the text inside based on the size.  Similar to what Robby Ingebretsen [...]

23
Nov/09
0

Silverlight 4 Beta – Accessing a users webcam and microphone

So, by now you should have heard that Silverlight 4 Beta was released at PDC 2009. One of the most interesting and fun features included in the release is the ability for you to access a users webcam and microphone. Even a fellow ElegantCoder wrote a short post on it.  But I wanted to go [...]

25
Sep/09
0

Extending the ObservableCollection to add navigation methods such as MoveFirst, MoveNext, MoveLast, and MovePrevious.

Recently, I had the need to navigate a list by using methods such as MoveFirts, MovePrevious, MoveNext, and MoveLast while at the same time keeping track of its current location to notify the user where they are at in the list.
Enter the ICollectionView.  “You can think of a collection view as a layer on top [...]

Filed under: .NET 3.5, WPF
22
Sep/09
0

NETDUG: WPF Event Routing Sample Code

Here is the sample code for last Thursday’s WPF Event Routing presentation.
Download Sample Code
I know I covered the subject fast, but I was in a hurry. I had to go to the airport. So here is a quick review.
Event Types:

Direct events are like ordinary .NET events. They originate in one element and don’t pass to [...]

Filed under: NETDUG, WPF
21
Aug/09
0

A Simple WPF Loading Animation

Okay, so I needed a very simple and clean loading animation for a multi threaded application I was working on to notify the user that something was in the process of being loaded.  So of course the first place I looked was Google, because I figured someone else has already written one and I could [...]

Filed under: WPF, XAML