Add SearchText field

This commit is contained in:
Maciej Winnik
2023-08-19 12:50:03 +02:00
parent e0b7464669
commit 7157e36712

View File

@@ -5,10 +5,10 @@
// Ross Ferguson (ross.c.ferguson@btinternet.com)
//
using NStack;
using System;
using System.Collections;
using System.Collections.Generic;
using NStack;
namespace Terminal.Gui {
/// <summary>
@@ -725,6 +725,18 @@ namespace Terminal.Gui {
}
}
/// <summary>
/// Current search text
/// </summary>
public ustring SearchText {
get {
return search.Text;
}
set {
search.Text = text = value;
}
}
private void SetValue (object text, bool isFromSelectedItem = false)
{
search.TextChanged -= Search_Changed;