Identity Interface header image

Posts from ‘July, 2008’

ObservableCollection Namespace

Don’t forget to add a reference to WindowsBase when you need to work with ObservableCollection in WPF.
I am a big fan of naming assemblies according to the contained namespace. That is why it always takes me a second to realize that System.Collection.ObjectModel.ObservableCollection<T> is in the WindowsBase namespace assembly.
 

Linq to Xsd

Linq to Xsd is one of microsofts many incubating projects.
Sounds like a great technology.
The question I am always faced with, is it worth it.
Time is limited and there are plenty of technologies out there that are in production that I know almost nothing about.
The ablility to access Xml in a strongly typed manner.
Man that sounds [...]

Click Detection in a WPF Listview

Once you have the event wired up, getting the current row only takes a couple lines of code.

?View Code CSHARP 
private void listPictures_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
Shern.PhotoManager.Common.ImageProperty value = [...]