June 2008

You are browsing the archive for June 2008.

Almost everything you need to know about XAML serialization (part 2)

In part one of this little simple series, we saw how to use XAML as a file format for our own custom types. However, we wanted to reduce the verbosity of XML for specifying objects with only a few properties. This can be done with MarkupExtensions.
We saw that the XAML serializer is asking if our [...]

Almost everything you need to know about XAML serialization (part 1)

The XML serialization API in .NET is pretty cool, but if you really want your data to look hype and futuristic, you can try out XAML!
XAML is not just for WPF or WF, it’s actually a generic XML-based language used to describe hierarchies of .NET objects. You can therefore use it to serialize your own [...]

XAML markup is for real men

The Visual Studio designer for WPF is quite lame as it stands now, and although it will get a lot better when Visual Studio 2008 SP1 is released, if you're a WPF developer, you really need to know how to read and write XAML by hand, much like web developers and designers know how to [...]

Custom provider attributes in a configuration element (part 2)

In the first part of this little series, we implemented a simple, read-only way to get custom attributes from a configuration element, using a provider pattern use case. We ended trying to modify the configuration file, without much success.
Right now, we have the following method, called at the end of the program:
private static void SimulateConfigurationChange()
{
[...]

RSS feeds and the zen of the newspaper reader

I see a lot of articles on the internet these days about ways to trim down your RSS subscriptions, how to manage your time to read through all your items, etc. My opinion on this is the complete opposite.

I say: subscribe to many RSS feeds. Leave most of them unread. Or set them as read [...]

Custom provider attributes in a configuration element (part 1)

A common pattern in .NET is the "provider pattern", where you have an abstraction for pulling data out of something (a database, a file, your ass, etc.), and one or several implementations of this interface (usually, one for each "something" you can pull data out of).

For this example, we're going to get cookies (the biscuit, [...]