mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 12:46:47 +02:00
Databinding for theme tab
This commit is contained in:
@@ -12,15 +12,6 @@ namespace Wox
|
||||
[Synchronization]
|
||||
public partial class ResultListBox
|
||||
{
|
||||
public void AddResults(List<Result> newRawResults)
|
||||
{
|
||||
var vm = (ResultsViewModel) DataContext;
|
||||
var newResults = newRawResults.Select(r => new ResultViewModel(r)).ToList();
|
||||
vm.Results.Update(newResults);
|
||||
vm.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
|
||||
public ResultListBox()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Reference in New Issue
Block a user