FuzzyPanel

This commit is contained in:
2023-06-30 14:01:25 +02:00
parent 0ed161c819
commit b5d332b3bd
9 changed files with 155 additions and 57 deletions

View File

@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>FileTime.App.FuzzyPanel</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.0-preview8" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,12 @@
using Avalonia.Input;
namespace FileTime.App.FuzzyPanel;
public interface IFuzzyPanelViewModel<TItem> where TItem : class
{
List<TItem> FilteredMatches { get; }
TItem? SelectedItem { get; }
string SearchText { get; set; }
void UpdateFilteredMatches();
Task<bool> HandleKeyDown(KeyEventArgs keyEventArgs);
}