A quick question on binding to a command in WPF. I've got a command that expects a Boolean as the parameter to execute, but I don't know how to specify the type in the xaml, anyone give me any pointers?
Command Code
public override void Execute(object parameter)
{
Boolean saveAs = (Boolean)parameter;
}
Xaml Code
<MenuItem Header="Save" Command="{Binding SaveOverlayCommand}" CommandParameter="False">
<MenuItem.Icon>
<Image Source="..\resources\save.png" MaxHeight="16" MaxWidth="16"/>
</MenuItem.Icon>
</MenuItem>