private void CommandBinding_Export(object sender, ExecutedRoutedEventArgs e) { if (!menuExport.IsEnabled) { return; } ExportWindow.Instance(); }