• 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 - Completion list text insertion

February 13, 2009 at 1:29 AM
by Bill Henning (Actipro)

We’re sad to be ending SyntaxEditor “completion list” blog post week today. :)  There’s been a lot of good information presented on the upcoming features for SyntaxEditor for WPF.

To recap, we had these related posts:

  • SyntaxEditor for WPF – Advanced completion list filtering
  • SyntaxEditor for WPF - Completion list transparency
  • SyntaxEditor for WPF - Completion list description tips
  • SyntaxEditor for WPF - Completion list matching algorithms

For the final post in this series, I’d like to talk about options for how text is auto-completed upon a completion list selection.

The screens below are taken from the QuickStart we have on this topic.

The simple way

Normally the text displayed in the completion list for an item is the same text that is inserted.  That is what happens by default.

However SyntaxEditor has the ability to insert alternate text both before and after the caret.  Several variations are shown in the following sections.

Alternate text inserted before the caret

In this sample, we have a br tag.  It shows br in the list but when it auto-completes, it inserts <br/> into the document.

Insert1    Insert2

A br tag before and after it is inserted from the completion list

Note that the caret is moved after the inserted text.

Alternate text inserted to surround the caret

In this sample, we have a comment.  It shows !-- in the list but when it auto-completes, it inserts <!-- --> into the document.

Insert3     Insert4

A br tag before and after it is inserted from the completion list

Note that the caret is automatically moved within the comment’s delimiters following insertion.

This is another similar example.  For the hyperlink, it shows a in the list but when it auto-completes, it inserts <a href=”” into the document.

Insert5      Insert6

A br tag before and after it is inserted from the completion list

Again the caret is automatically moved, but this time to within the href attribute value.

With the SyntaxEditor completion object model, you have total control over what is inserted and where the caret moves.  It’s very easy to set up.

Allowed characters

One other thing I’d like to discuss while showing these samples is the topic of allowed characters.  By default, only letters, digits, and underscores are allowed characters.  If you type any other character while a completion list is open, it will either auto-complete or cancel depending on whether you have a full selection in the list or not.

SyntaxEditor lets you customize the allowed characters.  For this QuickStart we added the ! and - characters as allowed characters so that comments can be typed.

Enjoy the weekend.  We will get into some new feature areas soon!

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

Related posts

SyntaxEditor for WPF - Advanced completion list filteringWe’re currently working on implementing completion lists in SyntaxEditor for WPF.  Comple...SyntaxEditor for WPF - Completion list matched text highlightsContinuing the series of posts regarding our advanced completion lists for the upcoming SyntaxEditor...SyntaxEditor for WPF – Auto-showing a completion list when typing a new wordOne feature that has been requested from several customers is the ability to show a completion list ...

Comments

February 12, 2009 at 09:57  

Mike Strobel

Great posts this week!  I look forward to seeing completion list support added to the alpha builds Smile.

Mike Strobel

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