Browse Source

Use display mode text formatting in ContextActionsPopupBase.

pull/2/head
Daniel Grunwald 15 years ago
parent
commit
c9ab2ef469
  1. 3
      src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsPopupBase.cs

3
src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsPopupBase.cs

@ -4,6 +4,7 @@
using System; using System;
using System.Windows.Controls.Primitives; using System.Windows.Controls.Primitives;
using System.Windows.Input; using System.Windows.Input;
using System.Windows.Media;
using ICSharpCode.Core.Presentation; using ICSharpCode.Core.Presentation;
using ICSharpCode.SharpDevelop.Editor; using ICSharpCode.SharpDevelop.Editor;
@ -17,6 +18,8 @@ namespace ICSharpCode.SharpDevelop.Refactoring
protected ContextActionsPopupBase() protected ContextActionsPopupBase()
{ {
this.KeyDown += OnKeyDown; this.KeyDown += OnKeyDown;
this.UseLayoutRounding = true;
TextOptions.SetTextFormattingMode(this, TextFormattingMode.Display);
} }
void OnKeyDown(object sender, KeyEventArgs e) void OnKeyDown(object sender, KeyEventArgs e)

Loading…
Cancel
Save