private void Window_PreviewKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.F5) { HistoryViewCommands.RefreshGraph.Execute(null, this); } }