Jim Rogers

Lives in Baton Rouge, LA, with two dogs, one cat, and one lovely wife. I'm a lead developer for GCR & Associates.

Katrin and Jim

Month List

WPF Templates

by Jim Dec 18, 2008 1:40 PM

When copying Microsoft’s default templates for WPF controls, you might run into some unresolved tags:

<Trigger.Value> <s:Boolean>False</s:Boolean> </Trigger.Value>

Where are that s:Boolean and the other ‘s’ prefixed tags thing comming from? They're in the System namespace; just add the prefix to your file like so:

xmlns:s="clr-namespace:System;assembly=mscorlib"

and you’re good to go!

Comments (2) -

2/7/2010 1:00:12 PM #

RredCat

I think that code will be more neat if set this value as attribute. This changes don't take away a long time.

RredCat

2/7/2010 1:00:12 PM #

Jim

This is the default template from Microsoft. When copying it for our own purposes, we can certainly refactor the system namespace away, but it might be nice to preserve the original formatting as-is.

Jim

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading