private void filterInput_TextChanged(object sender, TextChangedEventArgs e)
 {
     mainWindow = (MainWindow)Window.GetWindow(this);
     mainWindow.filterGadgets(filterInput.Text);
 }
 private void filterInput_TextChanged(object sender, TextChangedEventArgs e)
 {
     mainWindow = (MainWindow)Window.GetWindow(this);
     mainWindow.filterGadgets(filterInput.Text);
 }