mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Add SearchText field
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user