Adding initial playback bar logic.

This commit is contained in:
2025-03-02 13:46:33 -05:00
parent fc28004c89
commit 1a9c1a5478
16 changed files with 374 additions and 25 deletions

View File

@@ -0,0 +1,29 @@
using Avalonia.Data.Converters;
using System;
using System.Collections;
using System.Globalization;
namespace Harmonia.UI.Converters;
public sealed class NullVisibilityConverter : IValueConverter
{
public NullVisibilityConverter()
{
}
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
{
if (value is IList list)
{
return list.Count > 0;
}
return value is not null;
}
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}