diff --git a/ILSpy/ISmartTextOutput.cs b/ILSpy/ISmartTextOutput.cs index 5a46215c9..fce8ad09b 100644 --- a/ILSpy/ISmartTextOutput.cs +++ b/ILSpy/ISmartTextOutput.cs @@ -49,6 +49,8 @@ namespace ICSharpCode.ILSpy Button button = new Button(); button.Cursor = Cursors.Arrow; button.Margin = new Thickness(2); + button.Padding = new Thickness(9, 1, 9, 1); + button.MinWidth = 73; if (icon != null) { button.Content = new StackPanel { Orientation = Orientation.Horizontal, diff --git a/ILSpy/TextView/DecompilerTextView.cs b/ILSpy/TextView/DecompilerTextView.cs index 49ffb1d2a..4e5498343 100644 --- a/ILSpy/TextView/DecompilerTextView.cs +++ b/ILSpy/TextView/DecompilerTextView.cs @@ -33,7 +33,6 @@ using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Threading; using System.Xml; - using ICSharpCode.AvalonEdit; using ICSharpCode.AvalonEdit.Document; using ICSharpCode.AvalonEdit.Editing; @@ -41,6 +40,7 @@ using ICSharpCode.AvalonEdit.Folding; using ICSharpCode.AvalonEdit.Highlighting; using ICSharpCode.AvalonEdit.Highlighting.Xshd; using ICSharpCode.AvalonEdit.Rendering; +using ICSharpCode.AvalonEdit.Search; using ICSharpCode.Decompiler; using ICSharpCode.ILSpy.AvalonEdit; using ICSharpCode.ILSpy.Bookmarks; @@ -121,6 +121,7 @@ namespace ICSharpCode.ILSpy.TextView // Bookmarks context menu IconMarginActionsProvider.Add(iconMargin); + textEditor.TextArea.DefaultInputHandler.NestedInputHandlers.Add(new SearchInputHandler(textEditor.TextArea)); this.Loaded += new RoutedEventHandler(DecompilerTextView_Loaded); } diff --git a/ILSpy/TextView/DecompilerTextView.xaml b/ILSpy/TextView/DecompilerTextView.xaml index ae6a8298f..022ab422d 100644 --- a/ILSpy/TextView/DecompilerTextView.xaml +++ b/ILSpy/TextView/DecompilerTextView.xaml @@ -1,7 +1,7 @@  + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:ae="clr-namespace:ICSharpCode.AvalonEdit;assembly=ICSharpCode.AvalonEdit"> @@ -9,8 +9,13 @@ + Background="{DynamicResource {x:Static SystemColors.InfoBrushKey}}" + Foreground="{DynamicResource {x:Static SystemColors.InfoTextBrushKey}}"> + + +