mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 10:54:55 +08:00
- Add album text in lyrics render - Improve song info update and draw algo - Upgrade to .NET 10
24 lines
626 B
C#
24 lines
626 B
C#
using Microsoft.UI.Xaml.Data;
|
|
using System;
|
|
|
|
namespace BetterLyrics.WinUI3.Converter
|
|
{
|
|
public partial class IndexToDisplayConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, string language)
|
|
{
|
|
int display = 0;
|
|
if (value is int index)
|
|
{
|
|
display = index + 1;
|
|
}
|
|
return display.ToString();
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, string language)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|