A major new version of the Actipro Universal Windows controls is now available. This version includes all the features described in our blog under the project name "SyntaxEditor vNext". It also includes all of the updates that were part of today's earlier v2018.1 build 333 maintenance release.
Please be aware that Windows 10 Fall Creators Update (version 1709) or later and usage of the Microsoft's free 'Win2D.uwp' NuGet package are now required.
Detailed Update List
- The internals of SyntaxEditor have been heavily refactored 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 the SyntaxEditor.ZoomModesAllowed property, which uses a ZoomModes flags enum to select the input options (keyboard, mouse, touch) for zooming.
- The SyntaxEditor.HorizontalScrollBarVisibility and VerticalScrollBarVisibility properties now support an Auto mode that hides the related scrollbar when it isn't needed.
- 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.
- Added ScrollBar acceleration features 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.
- Carets now support movement at both the start and end of word wrapped lines.
- Virtual space is now supported at the end of lines when SyntaxEditor.IsVirtualSpaceAtLineEndEnabled is true.
- 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.
- Holding the Ctrl key will make the search overlay pane semi-transparent so that you can see the text behind it.
- The new SyntaxEditor.OverlayPaneOpened and OverlayPaneClosed events fire when the search overlay pane is opened or closed.
- Added support for horizontal splitting.
- 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.
- 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.
Input and Editing
- Added drag and drop support.
- 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.
- Renamed the DuplicateLine edit action to Duplicate and improved it to only duplicate the selected text if there is a selection.
- IntelliPrompt UI reworked across all platforms.
- The Metro Light and Metro Dark common image sets are now in vector form and render beautifully in high DPI.
- Added the ICompletionSession.CanHighlightMatchedText property to control a related feature that highlights the matched text in completion items as you type.
- Added drop shadows to IntelliPrompt popups.
- Updated all language add-on IntelliPrompt quick info and parameter info tips to use current syntax highlighting colors.
- Updated IntelliPrompt quick info and parameter info tips to use the same background as the editor.
- Updated completion filters so when there are multiple active filters with the same ICompletionFilter.GroupName, any one of those filters can includes an item.
- Added the HtmlContentProvider.BackgroundColorHint property that can be set to automatically select Metro light or dark-themed images based on the background lightness.
- Changed toggle button completion filters to appear unchecked when they aren't active, which is more natural.
- Refactored and centralized the logic for making IntelliPrompt popups and the new search overlay pane semi-transparent when the Ctrl key is held. Added a brief delay before the opacity change occurs.
- Text rendering is many times faster than in the previous versions, making an enormous leap forward in performance.
- 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.
- Added the SyntaxEditor.TextAreaFontSize property that can adjust the text area's font size without affecting overlay panes or IntelliPrompt.
- Language and view services are now tracked and retrieved in a new, more efficient mechanism.
- Added the ParseErrorTagger.MaximumParseErrorCount property that indicates the maximum number of parse errors to tag in a document. An enormous number of parse errors can slow down editing performance, so this property defaults to 5,000.
- Improved the editor to more efficiently update itself on highlighting style registry changes.
- Moved the NavigableSymbolSelector control up to primary SyntaxEditor namespace.
- Added the TextStylePreview control that renders a highlighting style.
- Refactored UI automation peers and moved the ITextProvider implementation from the SyntaxEditor peer to the IEditorView peer.
.NET Languages Add-on
- 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.
Python Language Add-on
- 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 classes in the list, no 'Classes' toggle button filter is visible.
Web Langauges Add-on
- Added full XML schema support, including validation and automated IntelliPrompt.
- Some breaking changes were made to accommodate the new SyntaxEditor cross-platform API, and for improved API clarity. See the 'Converting to 2019.1' documentation topic for information on any breaking changes.
- SyntaxEditor uses a new rendering mechanism implemented in the Shared Library's ActiproSoftware.UI.Xaml.Controls.Rendering namespace. This rendering mechanism has a dependency on Microsoft's 'Win2D.uwp' NuGet package.
- Changed all control libraries to require the Windows 10 Fall Creators Update (version 1709) or later.
About Universal Windows Controls
All Universal Windows 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 Universal Windows controls individually if you wish however you have the option to purchase all of them in the Universal Windows Studio bundle. Purchasing the bundle saves 50% over purchasing all the controls individually. In addition, if you own a Universal Windows Studio license, you are automatically eligible to receive free licenses for any new control products added to Universal Windows Studio that come out within your year subscription period.
Free Evaluation Download
You can download a free evaluation of all our Universal Windows controls from this page:
If you own an older Universal Windows 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.
Actipro Software Support