A major new version of the Actipro WinForms controls is now available. This version includes massive enhancements and updates to our SyntaxEditor product described as "SyntaxEditor vNext" in our blog. As part of those updates, the WinForms SyntaxEditor has been refactored to support a common API with the WPF and UWP versions of SyntaxEditor. This brings more modern features and design to the WinForms SyntaxEditor and will allow us to keep the three platforms in sync as features as added in the future.
Other important changes include moving the assemblies to require .NET 4.0 or later, a new Sample Browser project that has nearly 100 SyntaxEditor samples, and a new modern install experience.
Detailed Update List
Docking & MDI
- Improved the selected tabbed MDI container to not repaint its contents when its parent Form is activated or deactivated.
- The WinForms SyntaxEditor has been rewritten to support a cross-platform API across the WPF, UWP, and WinForms platforms. This allows SyntaxEditor features for the three platforms to be kept in sync moving forward.
Scrolling and Zooming
- Added smooth inertia-based touch scrolling.
- Added support for Shift+MouseWheel to scroll editor views horizontally.
- Added the IEditorViewScroller.ScrollTo method that scrolls the view to a certain view line, which can easily be displayed to the top, center, or bottom of the view via options in the supplied TextViewScrollState struct.
- Added the IEditorViewScroller.ScrollByPixels and ScrollHorizontallyByPixels methods, allowing for diagonal and horizontal scrolling by pixels respectively.
- When resizing a view that is scrolled to the right, the horizontal scroll amount can adjust to ensure that there isn't too much empty space on the text area's right side.
- The view now remembers maximum line widths better, which prevents horizontal scrollbar maximum changing as much when scrolling vertically through lines that have very different widths.
- Mouse wheel scrolling now supports page-based scrolling if the related operating system option is chosen.
- ScrollBar acceleration features added where the vertical scrollbar accelerates its scrolling speed the longer you hold the up or down button..
- Updated the NavigableSymbolSelector control to scroll the target offset to the middle of the view if scrolling is required when a symbol is selected.
Carets and Selection
- Multiple selections, each with their own caret, are now supported as long as the new SyntaxEditor.AreMultipleSelectionRangesEnabled property is true. A new selection can be added by holding the Ctrl key when clicking in the text area or clicking on the selection or line number margins.
- Properties on the IEditorView.Selection object continue to operate on the primary selection range. A new Ranges property has been added to the IEditorView.Selection object that allows for enumeration of all selection ranges.
- Multiple selections can be set with the new IEditorView.Selection.SelectRanges method, or a new selection can be added with the AddRange method.
- Most edit actions have been refactored to fully support multiple selections. For instance, pressing Shift+Right Arrow will extend all of the selections by one character.
- Copying text from multiple selections unions the selected text, joining each range's text with a line terminator.
- Pasting multi-line text into a view with the same number of selections as text lines being pasted will replace each selection with a related line from the pasted text.
- The IEditorView.DeleteSelectedText and ReplaceSelectedText methods have been refactored to support applying to multiple selections when the EditorViewTextChangeOptions.CanApplyToMultipleSelections flag is set.
- Selection grippers will show for the primary selection when touch input is used.
- Carets now support movement at both the start and end of word wrapped lines.
- Rendering of virtual space selections is improved.
- Block selections can be made in virtual space at the end of lines, even without line end virtual space being enabled. This prevents the caret from snapping to an offset when making a block selection, which can sometimes be problematic.
- Added the ITextChange.PostSelectionPositionRanges property that indicates the exact selection ranges for the source view after the text change is applied.
- Added the EditorViewSelectionEventArgs.PreviousSelectionRanges property that contains a snapshot of all selection ranges prior to the selection change.
- Added collapse selection left and collapse selection right edit actions.
- A new search overlay pane displays over the upper-right of the active editor view when Ctrl+F (find mode) or Ctrl+H (replace mode) are pressed in a multi-line editor. Related edit actions added.
- A toggle mode button on the search overlay pane switches between find and replace modes, and all common search options are supported via toggle buttons and other controls.
- The search overlay pane can be closed by clicking the X button or by pressing Esc.
- Ctrl+F3 will open the search overlay pane without focusing it, and will search forward for the currently-selected text. Ctrl+Shift+F3 will do the same but will search backwards. Related edit actions added.
- F3 will search for the next match of the previously-used search options. Shift+F3 will search for the previous match of the previously-used search options. Related edit actions added.
- If the SyntaxEditor.IsSearchResultHighlightingEnabled property is true, the search results will be highlighted while the search overlay pane is open. Closing the search overlay pane, clears the search result highlights.
- The new SyntaxEditor.OverlayPaneOpened and OverlayPaneClosed events fire when the search overlay pane is opened or closed.
- Updated the scrollbar splitter button with a larger appearance.
- Drag a view splitter to the bottom of the view to remove the split and keep the top view.
- Added the ITextViewLineNumberProvider language service with a DefaultTextViewLineNumberProvider implementation that allows for complete customization of how line numbers are rendered in the line number margin. Added the IEditorDocument.LineNumberOrigin property that sets the line number for the first line in the document, and defaults to one.
- Added the ruler margin, which is displayed via the SyntaxEditor.IsRulerMarginVisible property.
- Added outlining margin highlights when moving a pointer over nodes in the margin.
- Updated line modification marks with improved logic that better tracks unsaved, saves, and reverted changes.
- Updated the IIndicatorTag interface to use the fast new rendering mechanism for drawing glyphs instead of making UI elements.
- Improved the rendering of built-in indicator glyphs.
- Added the SyntaxEditor.IsDelimiterAutoCompleteEnabled property to determine if syntax languages support delimiter auto-completion. Delimiter auto-completion can be implemented by registering an IDelimiterAutoCompleter language service. The built-in DelimiterAutoCompleter class implements common delimiter auto-completion functionality.
- Added the SyntaxEditor.IsDelimiterHighlightingEnabled property to determine if multi-threaded delimiter highlighting is enabled. IStructureMatcher and DelimiterHighlightTagger provider services are required on the syntax language to support this feature.
Input and Editing
- Added the PerformTyping, PerformInsertTyping, and PerformOverwriteTyping methods to the IEditorViewTextChangeActions interface that simulate typing.
- Added the IEditorViewTextChangeActions.FormatDocument and FormatSelection methods, which call the related edit commands.
- Improved the open line above and open line below edit actions to use the current language's indent provider for caret positioning.
- Added support for triple-clicks to select an entire view line. Dragging the pointer on the final click will extend the selection by view line.
- IntelliPrompt UI reworked across all platforms.
- The Metro Light and Metro Dark common image sets have been added as options in place of the existing Classic common image set.
- Added a completion list feature that highlights the matched text in completion items as you type.
- Added a completion list option that filters out items that don't match the typed text, thereby shrinking the list of visible items.
- Added various completion list item matchers and match options that allow for special item matching logic to be injected. Numerous built-in item matchers are available such as starts-with, acronym, shorthand, etc.
- Added completion filter UI such as buttons and tabs.
- Updated all language add-on IntelliPrompt quick info and parameter info tips to use the current editor background and syntax highlighting colors.
- Text rendering now properly handles cultural editing concepts like complex glyphs, bi-directional text, etc.
- The SyntaxEditor.IsDefaultContextMenuEnabled property determines if the default context menu is enabled. The default context menu is initialized and passed into the new SyntaxEditor.MenuRequested when a menu is requested for display. Handle the MenuRequested event to update the menu's items before it is opened.
- Added the SyntaxEditor.IsWordWrapEnabled property for easy binding in menu items.
- Language features are now implemented via services registered on syntax languages.
- The TypeMemberDropDownList control in the .NET Languages Add-on changed to a new NavigableSymbolSelector control that can work for many languages.
.NET Languages Add-on
- Updated the C# parser and resolver to support C# 7.3 syntax.
- Updated the VB parser and resolver to support VB 15.8 syntax.
- Added IntelliPrompt completion list toggle button filters for the various kinds of items displayed in the list.
- The IntelliPrompt completion filter UI (toggle buttons and tabs) only shows based on the available items in the unfiltered list. For instance, if there are no types in the list, no 'Types' toggle button filter is visible.
Web Languages Add-on
- Added the JSON language.
Python Language Add-on
- Added the add-on, which wasn't available in prior WinForms versions.
- Updated all assemblies to require .NET 4.0 or later.
- Removed AllowPartiallyTrustedCallersAttribute from assemblies.
- Changed default font to be MS Segoe 9pt.
- Implemented a new Visual Studio sample project.
- Switched all product source projects to use the new SDK style of .csproj files.
- Created a new product installer experience.
- Fixed a bug where multiple versions of the WinForms Controls installed on a system could prevent the VS designer functionality from working properly.
About WinForms Controls
All WinForms control licenses automatically include a free subscription for a year of free upgrades to any new versions that are released. At the end of the year, you may renew your license for another year to keep the free upgrade benefits active.
You can purchase our WinForms controls individually if you wish however you have the option to purchase all of them in the WinForms Studio bundle. Purchasing the bundle saves over purchasing all the controls individually. In addition, if you own a WinForms Studio license, you are automatically eligible to receive free licenses for any new control products added to WinForms Studio that come out within your year subscription period.
You can download an evaluation of all our WinForms controls from this page:
If you own an older WinForms controls version and would like to upgrade to this latest version, please click the request a free upgrade link on your organization account page's 'Purchases and Licenses' tab. The link will appear there if your upgrade eligibility is active.
[Modified 8 months ago]
Actipro Software Support