Feeds:
Posts
Comments

Archive for July, 2008

New Bike!

Finally got my new bike this Thursday. Ridley Excalibur Team Unibet frameset, mostly Shimano Dura-Ace 10 speed components, DT Swiss wheelset.
Just finished building it, now it’s time to hang it on the wall… I mean ride it.

Read Full Post »

In a previous post I created a markup extension which could be used to bind an Enum’s values to an ItemsControl. Now what if we want those values to be localized? The following is a little trick I use to solve this problem.
My translations are stored in .NET resources. When I add a resource [...]

Read Full Post »

Resource Markup Extension

In my spare time I’m working on a smallish WPF application which will need to be localized. Looking at WPF’s current localization story left me wanting. What I really wanted was good old fashioned .NET resources accessible in xaml.
One option is to generate public resource files using the PublicResXFileCodeGenerator custom tool new to VS [...]

Read Full Post »

Veggie Box

Everybody’s doing it… A variety of delicious organic fruits and vegetables tailored by you to your unique preferences and delivered to your door! What could be wrong with that?

Read Full Post »

Enum GetValues markup extension

There are plenty of posts dealing with binding an ItemsControl to an Enum’s values. Beatriz Costa demonstrates how to accomplish this purely in xaml. We end up with something like the following.

<ObjectDataProvider MethodName="GetValues"
   ObjectType="{x:Type s:Enum}" x:Key="EnumValues">
    <ObjectDataProvider.MethodParameters>
        <x:Type TypeName="src:DevicePointFormat" />
    </ObjectDataProvider.MethodParameters>
</ObjectDataProvider>       

  

This feels a little on the verbose side to me. The [...]

Read Full Post »

Summer Goat

My name is Scott Alexander and this will be my third attempt at writing a blog (sounds like step 1 of a 12 step program).
I’m a software developer working for little software company in Redmond, Washington. The purpose of this blog is not entirely clear. I envision it being mainly technical but I warn you [...]

Read Full Post »