// execute view-orders command. Opens orders dialog private void ViewOrdersCommand_Executed(object sender, ExecutedRoutedEventArgs e) { var window = new WindowOrders(); window.Owner = this; window.ShowDialog(); CommandManager.InvalidateRequerySuggested(); }