Because command parameters are of type "object", the XAML parser cannot perform type conversion for you. If you pass "true", the parser will not be able to understand that you want this converted value to be logical. You will need to do this explicitly. You can use the syntax of a property element:
<Button> <Button.CommandParameter> <sys:Boolean>true</sys:Boolean> </Button.CommandParameter> </Button>
Where is the sys id displayed:
xmlns:sys="clr-namespace:System;assembly=mscorlib"
source share