Implemented gif exportation and added some style (again)

This commit is contained in:
Laurent
2026-02-17 18:20:53 +01:00
parent b81d912cf4
commit 4a5bf8dfff
10 changed files with 268 additions and 101 deletions

View File

@@ -0,0 +1,21 @@
using System.Globalization;
using System.Windows;
using System.Windows.Data;
namespace GifResizer.Views.Converter;
public class VisibleWhenNullConverter : IValueConverter
{
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
{
bool invert = parameter?.ToString() == "invert";
bool isVisible = invert ? value != null : value == null;
return isVisible ? Visibility.Visible : Visibility.Collapsed;
}
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}