From c9ab2ef4699e26dcca197879d5acb281feeece13 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Thu, 7 Oct 2010 18:47:37 +0200 Subject: [PATCH] Use display mode text formatting in ContextActionsPopupBase. --- .../ContextActions/ContextActionsPopupBase.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsPopupBase.cs b/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsPopupBase.cs index c40e37f23b..e6bc6f1c90 100644 --- a/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsPopupBase.cs +++ b/src/Main/Base/Project/Src/Services/RefactoringService/ContextActions/ContextActionsPopupBase.cs @@ -4,6 +4,7 @@ using System; using System.Windows.Controls.Primitives; using System.Windows.Input; +using System.Windows.Media; using ICSharpCode.Core.Presentation; using ICSharpCode.SharpDevelop.Editor; @@ -17,6 +18,8 @@ namespace ICSharpCode.SharpDevelop.Refactoring protected ContextActionsPopupBase() { this.KeyDown += OnKeyDown; + this.UseLayoutRounding = true; + TextOptions.SetTextFormattingMode(this, TextFormattingMode.Display); } void OnKeyDown(object sender, KeyEventArgs e)