Visibility Converter
Last updated
Last updated
The ObjectToVisibilityConverter is available as it's own name as static resource. It will check upon the bound data and either returns Visibility.Visible
(show) or Visibility.Collapsed
(hide).
If you set false
as parameter, then the outcome is reversed.
If you have a Nation
's property local data context, and you want the parent border to be only visible when the nation is set (set means either null or empty string) then you can use the converter: