private void buttonSearchSchema_Click(object sender, RoutedEventArgs e) { SearchDataGridWindow win = new SearchDataGridWindow(); FrameworkElement elem = sender as FrameworkElement ?? dataGridColumns; WindowLocator.LocateNearby(elem, win, NearbyLocation.UpLeft); win.Owner = Window.GetWindow(this); win.Target = dataGridColumns; win.Show(); }
private void FindCommand_Executed(object sender, ExecutedRoutedEventArgs e) { SearchDataGridWindow win = RequireSearchWindowDataGridColumns(); win.Show(); }