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

The Actipro Blog

Tag Cloud

  • aero
  • blog
  • docking
  • editors
  • gauge
  • intelliprompt
  • navigation
  • propertygrid
  • ribbon
  • shared library
  • silverlight
  • syntaxeditor
  • themes
  • views
  • winforms
  • wpf

Latest Twitter News

November 21, 2011 at 11:14 AM
#WPF Studio 2011.2 is out now! Includes enhanced themes for native WPF conrtols and new SyntaxEditor features. http://t.co/uEMCaGPG

September 26, 2011 at 1:25 PM
If you'd like to see our #WPF / #Silverlight SyntaxEditor code editor control ported to Metro, provide feedback here: http://t.co/xXBNIDTi

September 15, 2011 at 8:31 PM
If you want to see SyntaxEditor eventually show up in Win8's #xaml UI, be sure to add your support to this MS thread: http://t.co/FBjz6TuC

August 15, 2011 at 1:47 PM
New SyntaxEditor IntelliPrompt parameter info feature docs/samples ready for the 2011.2 #WPF and #Silverlight releases. http://t.co/ezoYIjv

August 2, 2011 at 2:40 PM
First look at new automated IntelliPrompt parameter info coming to our C#/VB editor control in #WPF / #Silverlight http://t.co/CUz6O1T

Twitter Follow us on Twitter

Month List

  • 2012
    • February (3)
    • 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 (289)
  • RSS feed for Blog SummaryBlog Summary (13)
  • RSS feed for GeneralGeneral (34)
  • RSS feed for In developmentIn development (150)
  • RSS feed for New featuresNew features (140)
  • RSS feed for New productNew product (30)
  • RSS feed for PromotionPromotion (2)
  • RSS feed for SilverlightSilverlight (71)
  • RSS feed for Tips and tricksTips and tricks (4)
  • RSS feed for Visual Studio 2008Visual Studio 2008 (2)
  • RSS feed for Windows FormsWindows Forms (20)
  • RSS feed for Windows VistaWindows Vista (10)
  • RSS feed for WPFWPF (235)
  • 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 update in latest WPF Studio build 502 release

July 7, 2009 at 4:57 AM
by Bill Henning (Actipro)

In a couple past blog posts, we talked about how as of build 501, syntax languages implemented the service locator design pattern.  The Syntax languages to be service locators topic discussed the generics-based implementation of the service locator pattern and how we also added extension methods so that the most commonly used “services” could easily be registered and retrieved.

We had implemented these extension methods in build 501 using a trick (since SyntaxEditor targets .NET 3.0) but later found a problem with that trick.  Thus build 502 fixes the problem introduced in build 501. 

The trick to get extension methods to work in .NET 3.0 or earlier

The problem with extension methods is that they technically require your projects to target .NET 3.5 to get them to work.  However someone discovered that you can define an ExtensionAttribute in the same namespace as the .NET 3.5 one and put that in your .NET 3.0 or earlier projects to get extension methods working in VS 2008 there too.

It’s a really neat trick until you encounter the problem scenario.

The problem scenario

The problem scenario occurs in Visual Basic projects only that reference an .NET 3.5 or later assembly which uses “real” extension methods.  In that case, the VB project will throw an error on compile and fail to compile.

This blog post talks about the issue in more detail.

The solution implemented in build 502

Since we still target .NET 3.0, the only real option for us was to make the extension methods open source.  So in build 502 we have moved the source code for them to the Sample Browser, where you may copy it to your own projects to use it if you’d like.

In the future, when we eventually change the product to target .NET 3.5 or later, we’ll move the extension method code back into the SyntaxEditor assembly.  We didn’t want to make that platform target change yet though.

Build 502 is live right now and ready for download.  It also includes several tweaks and bug fixes to other products that we’ve found since the release of build 501.

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

Related posts

WPF Studio 2009.1 build 504 released, adding DataGrid functionality, SyntaxEditor enhancements, and much moreWe’ve just released WPF Studio 2009.1 build 504.  This is a huge update and includes some major...WPF Studio 2009.1 build 506 released with many major updatesBuild 506 of WPF Studio 2009.1 is available for download now.  It is one of the larger WPF Stud...Press Release: Actipro Software’s WPF Studio 2010.1 Control Suite Integrates with Visual Studio 2010Actipro’s unique bundle of Windows Presentation Foundation user interface controls offers everything...

Comments

October 1, 2009 at 03:41  

trackback

Actipro Blog 2009 Q3 posting summary

Actipro Blog 2009 Q3 posting summary

The Actipro Blog - WPF and WinForms Development

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