16 lines
449 B
C#
16 lines
449 B
C#
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
using System.Windows.Data;
|
|||
|
|
|
|||
|
|
namespace WPFluent.Converters;
|
|||
|
|
|
|||
|
|
internal class BoolToVisibilityConverter : IValueConverter
|
|||
|
|
{
|
|||
|
|
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|||
|
|
{ return value is true ? Visibility.Visible : Visibility.Collapsed; }
|
|||
|
|
|
|||
|
|
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|||
|
|
{ throw new NotImplementedException(); }
|
|||
|
|
}
|