View Code? Open in Web Editor
NEW
A UWP based textbox with Syntaxhighlighting and support for very large amounts of text
License: MIT License
textcontrolbox-uwp's Introduction
textcontrolbox-uwp's People
Contributors
Watchers
textcontrolbox-uwp's Issues
The cursor doesn't calculate the position relative to the horizontal scrolling
Copying the selected text and pasting it behind the copied one, adds a new line to the end of the textbox everytime the text gets pasted
The cursor sometimes renders at a position which is greater than the length of TotalLines
The AddNewLine function is full of problems and needs a redo
Select first line to last line(the character position doesn't matter) and press delete or press any character.
After pressing Ctrl + Z for Undo the last line is missing in Undo
Fix all the selection positions after Remove, Replace, Insert, Tab, Enter, etc.
Fix OutOfRange exceptions in TotalLines-list by using functions with OutOfRange-check, instead the direct index accessor
Select text from bottom to anywhere without fully selecting the selection end-line -> Delete -> Undo:
The line, which was not selected completely, stays
char CurrentCharacter = CurrentLine. Content[ i] ;
Because the UndoStack can only store 1MB of data, the potential for large Undooperations is pretty weak.
A custom Stack using an Array or a List is a should be a way better alternative here.
Exception in Line between if-statement StartLine == EndLine
Implement functions for the tab-key:
Tab = insert tab
Tab on selected text = insert tab for every line in selection
Shift + Tab = remove tab
Shift + Tab on selected text = remove tab in every line in selection
When reaching end of line by using Shift + Tab the selection moves further back
Introduce a new accessor in the Line class which returns the lenght of the Content value
Scroll to the last inserted line if enter gets pressed at the bottom of the textbox, to make the inserted line visible
RemoveRange throws OutOfRange exception in ReplaceUndo in Selection.cs
The emoji-window doesn't input color-emojis or ASCII-emojis to the textbox
If all text gets selected by pressing Ctrl + A and any character or Ctrl + V gets pressed the selected text gets removed but the entered character or the clipboard won't get pasted
Every pressed key counts as a single undo, minimize this to enter and space presses
The first line can not get selected for its own. just with another line selected too
Select some lines from the top to the bottom -> Press Delete -> Press Ctrl + Z: Not all lines are back
Scroll the text horizontally when selecting
DeleteCount = EndLine. CharacterPosition == TotalLines[ EndLine. LineNumber] . Length ? 0 : 1 ;
If enter gets pressed, the selection wont be deleted and instead a new line gets inserted and the selected content stays