Files
Wino-Mail/Wino.Core.WinUI/Converters/ReverseBooleanToVisibilityConverter.cs
T

19 lines
512 B
C#
Raw Normal View History

2024-04-18 01:44:37 +02:00
using System;
2025-09-29 11:16:14 +02:00
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Data;
2024-04-18 01:44:37 +02:00
2025-02-16 11:54:23 +01:00
namespace Wino.Converters;
public partial class ReverseBooleanToVisibilityConverter : IValueConverter
2024-04-18 01:44:37 +02:00
{
2025-02-16 11:54:23 +01:00
public object Convert(object value, Type targetType, object parameter, string language)
2024-04-18 01:44:37 +02:00
{
2025-02-16 11:54:23 +01:00
return ((bool)value) ? Visibility.Collapsed : Visibility.Visible;
}
2024-04-18 01:44:37 +02:00
2025-02-16 11:54:23 +01:00
public object ConvertBack(object value, Type targetType, object parameter, string language)
{
throw new NotImplementedException();
2024-04-18 01:44:37 +02:00
}
}