• Products
  • Download
  • Purchase
  • Support
  • Company
Actipro Software company logo
Twitter Follow Actipro RSS Subscribe (RSS Feed)

The Actipro Blog

Tag Cloud

  • blog
  • docking
  • editors
  • intelliprompt
  • micro charts
  • navigation
  • propertygrid
  • ribbon
  • shared library
  • silverlight
  • syntaxeditor
  • themes
  • views
  • web site
  • winforms
  • winrt
  • wpf

Latest Twitter News

May 14, 2012 at 2:50 PM
IntelliPrompt code snippet features have been added to our VS-like code editor control for #WPF and #Silverlight. http://t.co/1IchOJrr

May 10, 2012 at 9:40 PM
Our new Micro Charts control products for #WPF and #Silverlight are out now. Come build some dashboards with them! http://t.co/EEERvff0

May 7, 2012 at 6:47 AM
Today we look at bar charts, for our upcoming #WPF, #Silverlight, and #WinRT Micro Charts product. http://t.co/gxHuPS6B

May 4, 2012 at 6:25 AM
See a gallery of micro area charts in our upcoming release for #WPF, #Silverlight, and #WinRT. http://t.co/qDXGwW8B

May 3, 2012 at 6:32 AM
See a variety of line charts that are easy to make with our upcoming #WPF, #Silverlight, #WinRT Micro Charts product. http://t.co/mbkX6tJd

Twitter Follow us on Twitter

Month List

  • 2012
    • May (9)
    • April (6)
    • March (11)
    • February (11)
    • January (2)
  • 2011
    • December (2)
    • November (7)
    • October (2)
    • September (1)
    • August (5)
    • July (3)
    • June (6)
    • May (5)
    • April (8)
    • March (4)
    • February (5)
    • January (9)
  • 2010
    • December (9)
    • November (10)
    • October (4)
    • September (8)
    • August (12)
    • July (9)
    • June (7)
    • May (6)
    • April (7)
    • March (6)
    • February (6)
    • January (4)
  • 2009
    • December (2)
    • November (2)
    • October (12)
    • September (3)
    • August (11)
    • July (10)
    • June (6)
    • May (3)
    • April (7)
    • March (6)
    • February (8)
    • January (10)
  • 2008
    • December (10)
    • November (2)
    • October (3)
    • September (5)
    • August (5)
    • July (8)
    • June (4)
    • May (4)
    • April (10)
    • March (8)
    • February (1)
    • January (2)

Category List

  • RSS feed for ActiproActipro (321)
  • RSS feed for Blog SummaryBlog Summary (15)
  • RSS feed for GeneralGeneral (43)
  • RSS feed for In developmentIn development (164)
  • RSS feed for New featuresNew features (155)
  • RSS feed for New productNew product (38)
  • RSS feed for PromotionPromotion (2)
  • RSS feed for SilverlightSilverlight (90)
  • RSS feed for Tips and tricksTips and tricks (4)
  • RSS feed for Visual Studio 2008Visual Studio 2008 (2)
  • RSS feed for Windows FormsWindows Forms (22)
  • RSS feed for Windows VistaWindows Vista (10)
  • RSS feed for WinRTWinRT (9)
  • RSS feed for WPFWPF (257)
  • RSS feed for XAMLXAML (23)

About Us

Actipro Software is a leading provider of .NET user interface controls for the WPF, Silverlight, and WinForms frameworks, and is most well-known for their SyntaxEditor syntax-highlighting code editor control.

Please take some time to learn more about us and our product offerings.

SyntaxEditor for WPF to Get TextFormattingMode Support

February 3, 2011 at 8:48 AM
by Bill Henning (Actipro)

PostBannerSyntaxEditorDevNotes

We’re excited to announce that in the next WPF Studio 2011.1 maintenance release (which will be build 541) we have updated SyntaxEditor to support “display” text formatting mode when that mode is specified in a .NET 4.0 application.

This was especially tricky to add since WPF Studio still targets .NET 3.5 where the options don’t yet exist. Smile  But through the magic of reflection and other techniques, we now will fully support the .NET 4.0 text rendering options when SyntaxEditor is used in a .NET 4.0 app.

What is a Text Formatting Mode?

The TextFormattingMode enumeration, added in .NET 4.0, provides a Display option that can be set to indicate you would like rendered text to look good on displays.  This is beneficial when rendering smaller fonts, such as 10-12pt or smaller.

The other option, Ideal, is what is used by default and in pre-.NET 4.0 apps.  Ideal is best suited for use with larger font sizes since Display mode looks blurry when large font sizes are used or the text is scaled up.

A good summary of the text formatting API updates in .NET 4.0 is given here:

http://blogs.msdn.com/b/text/archive/2009/08/24/wpf-4-0-text-stack-improvements.aspx

Ideal vs. Display Comparison

Let’s look at a visual comparison between TextFormattingMode.Ideal and TextFormattingMode.Display.  For these screens we’re using Consolas at 13pt, which when using the “display” setting will allow your SyntaxEditors to render exactly like the VS 2010 code editor, with the same clarity.

TextFormattingModeIdeal

Above is the default “ideal” setting, also used in pre-.NET 4.0.  It’s not really that bad looking in Consolas but you can see that some of the letters look a bit anti-aliased, especially in the quick info popup that is not using Consolas.

TextFormattingModeDisplay

Now here is where we have applied the “display” setting instead.  The Consolas editor text is a bit crisper and the IntelliPrompt popups look much better.

Dynamic Mode Switch When Zooming

We also have implemented code to automatically force “ideal” mode when zooming in, such as with Ctrl+MouseWheel.  When text is scaled up using “display” mode, it looks very blurry.  Thus our code to force “ideal” mode kicks in whenever the SyntaxEditor.ZoomLevel property goes above 100%, thereby keeping text rendering clear in any scenario.

Summary

These new features will be very beneficial to those of you who use SyntaxEditor in .NET 4.0 apps since they will improve the clarify of text in the editor for your end users.

The features are ready to go for the next WPF Studio maintenance release build 541.

Tags: wpf, syntaxeditor
Filed under: Actipro, WPF, New features
Submit to DotNetKicks...
Permalink | Comments (1)

Related posts

SyntaxEditor for WPF - Adding syntactic/semantic parsing supportAs we move forward on new features for SyntaxEditor for WPF, the next feature area we’ve been ...Actipro SyntaxEditor for WPF and Editors for WPF are released SyntaxEditor for WPF with a custom theme loaded Yesterday evening we published WP...WPF products to add support for Microsoft’s Pixel Shader Effects (WPF FX) Library The next maintenance release of WPF Studio will include some new functionality that allows HLSL-ba...

Comments

April 7, 2011 at 10:21  

trackback

Actipro Blog 2011 Q1 Posting Summary

Actipro Blog 2011 Q1 Posting Summary

The Actipro Blog - WPF, Silverlight, and WinForms Development

Comments are closed
Copyright © 1999-2012 Actipro Software LLC. All rights reserved.
Home Actipro Software | Products | Download | Contact Us