Long story short, I need to do this:
ExpressionType="{x:Type sys:Byte[]}"
In other words, I need to do this:
foo.ExpressionType=typeof(byte[]);
Wat do?
Update: Its a bug in the 2010 design surface. It works fine at runtime.
Long story short, I need to do this:
ExpressionType="{x:Type sys:Byte[]}"
In other words, I need to do this:
foo.ExpressionType=typeof(byte[]);
Wat do?
Update: Its a bug in the 2010 design surface. It works fine at runtime.
If there is no way to do it in the framework, then you can write your own markup extension:
Usage:
Actually, just doing {x:Type sys:Byte[]} seems to work.