namespace Common.UI.Infrastructure { using System; using System.Globalization; using System.Windows; using System.Windows.Data; public class BooleanToVisibilityConverter : IValueConverter { public object Convert(object value, Type targetType, Object parameter, CultureInfo culture) => value is bool visible && visible ? Visibility.Visible : Visibility.Collapsed; public object ConvertBack(object value, Type targetType, Object parameter, CultureInfo culture) => throw new NotImplementedException(); } }