I have some xaml (for example: <Button IsEnabled="{Binding enableButton}"/>
) and I want to bind it to two bools (for instance, enableButton
and alsoEnableButton
) such that button.IsEnabled = enableButton && alsoEnableButton;
, but I want to do this entirely in the xaml. I've seen this question that looks very similar to what I want to do, but I'm not sure how to apply it for my specific situation: WPF binding to two properties - this question addresses setting properties that are not boolean, I want to put a boolean expression in the xaml (ex <Button IsEnabled="true || false"/>
or something like that).
How do I bind a xaml property to a boolean expression? Is this possible?