Initial commit to new repository

This commit is contained in:
2026-04-03 18:22:19 +09:00
commit 4458bb0f52
7672 changed files with 452440 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
namespace AxCopilot.Themes;
public class IndexToNumberConverter : IValueConverter
{
public object Convert(object value, Type t, object p, CultureInfo c)
{
if (value is ListViewItem container)
{
ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer((DependencyObject)(object)container);
if (itemsControl != null)
{
int num = itemsControl.ItemContainerGenerator.IndexFromContainer((DependencyObject)(object)container);
return (num >= 0 && num < 9) ? (num + 1).ToString() : "";
}
}
return "";
}
public object ConvertBack(object v, Type t, object p, CultureInfo c)
{
throw new NotImplementedException();
}
}