diff --git a/ILSpy/Controls/ResourceStringTable.xaml b/ILSpy/Controls/ResourceStringTable.xaml index 47663dc68..925b0367c 100644 --- a/ILSpy/Controls/ResourceStringTable.xaml +++ b/ILSpy/Controls/ResourceStringTable.xaml @@ -1,6 +1,11 @@  + + + diff --git a/ILSpy/Controls/ResourceStringTable.xaml.cs b/ILSpy/Controls/ResourceStringTable.xaml.cs index 3c7aa04ff..347667228 100644 --- a/ILSpy/Controls/ResourceStringTable.xaml.cs +++ b/ILSpy/Controls/ResourceStringTable.xaml.cs @@ -32,5 +32,18 @@ namespace ICSharpCode.ILSpy.Controls MaxHeight = MainWindow.Instance.mainPane.ActualHeight-100; resourceListView.ItemsSource = strings; } + + void ExecuteCopy(object sender, ExecutedRoutedEventArgs args) + { + if (resourceListView.SelectionMode == SelectionMode.Single) + return; + else if (resourceListView.SelectionMode == SelectionMode.Multiple) + return; + } + + void CanExecuteCopy(object sender, CanExecuteRoutedEventArgs args) + { + args.CanExecute = true; + } } } \ No newline at end of file