-
Notifications
You must be signed in to change notification settings - Fork 0
NotBooleanConverter
Mark Smith edited this page Aug 26, 2016
·
2 revisions
This value converter takes a boolean as input and returns the inverse (true -> false and false -> true).
It can be declared inline with a binding as a markup extension, or in resources to be shared.
<Label Text="You see me" x:Name="firstLabel" />
<Label Text="Or me."
IsVisible="{Binding IsVisible,
Source={x:Reference firstLabel},
Converter={cvt:NotBooleanConverter}}" />