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 common from? There 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/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

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

Add comment


(Shows Gravatar icon; will not be displayed)

  Country flag
Click to change captcha
biuquote
  • Comment
  • Preview
Loading