This commit is contained in:
Frank Skare
2019-05-01 10:23:53 +02:00
parent 225979d220
commit 1b9229d4d9
2 changed files with 8 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
using System.Windows.Media;
using Sys;
namespace mpvnet
@@ -27,6 +27,12 @@ namespace mpvnet
var yourCostumFilter = new Predicate<object>(item => Filter((CommandItem)item));
CollectionView.Filter = yourCostumFilter;
DataGrid.ItemsSource = CollectionView;
if (App.IsDarkMode)
{
Foreground = Brushes.White;
Background = Brushes.Black;
}
}
private void SearchTextBox_TextChanged(object sender, TextChangedEventArgs e)