How to set IsEnabled to true when binding property is false

I have two page elements (in the same view) with one dependent on the other. I need my entry to be enabled only if the checkbox is NOT selected. Can I do this without creating another property?

<Label Text="Simulate" />
<CheckBox IsChecked="{Binding Simulate}"/>

<Label Text="Route Path"/>
<Entry Text="{Binding RoutePath}" IsEnabled="{Binding Simulate}"/>


Read more here: https://stackoverflow.com/questions/68462174/how-to-set-isenabled-to-true-when-binding-property-is-false

Content Attribution

This content was originally published by Melanie Markarian at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: