I have this code (which works just right):
This might be a bit of a hack but you can derive from the KeyBinding class:
public class BoolKeyBinding : KeyBinding
{
public bool Parameter
{
get { return (bool)CommandParameter; }
set { CommandParameter = value; }
}
}
Usage:
And another not so weird solution:
xmlns:s="clr-namespace:System;assembly=mscorlib"
True
False
Usage: