Andrey Kunchev
3b302006fd
fix failing text e.g. restore carretIndex in textbox when text changed
8 years ago
Andrey Kunchev
0959be5e01
fix for textbox OutOfRangeException issue #1954
8 years ago
Dan Walmsley
09892554c4
dont clear textbox selection when right clicking.
8 years ago
rayyantahir2010@hotmail.com
387de6a3f7
Fix build failure
8 years ago
rayyantahir2010@hotmail.com
06dbc91583
Moved caret visibility decision to helper method and called that method in OnTemplateApplied also
8 years ago
Rayyan Tahir
cf3bdf8507
When TextBox IsReadOnly property is true, no need to show caret.
8 years ago
CommonGuy
ab36f86325
Add the NewLine property to TextBox
8 years ago
Dan Walmsley
8befbacba0
Use textpresenter to replace with password char.
8 years ago
Dan Walmsley
8493ce8f04
correctly order the properties.
8 years ago
Dan Walmsley
a4221ad809
whitespace.
8 years ago
Dan Walmsley
d1200e1e47
protect against copy and cut.
8 years ago
Dan Walmsley
a9747e0bd6
whitespace.
8 years ago
Dan Walmsley
aca0fb3eba
Implement password char on TextBox rather than separate control.
8 years ago
temporaryuser0
ad675ded5e
Check if event was handled before in OnTextInput
8 years ago
Steven Kirk
6682c3e2dc
Moved the reentrancy check to TextBox.
8 years ago
sdoroff
6bc4c1764c
Fixed an off by one bug
8 years ago
Dan Walmsley
d1b0a9ef30
handle textinput.
8 years ago
Dan Walmsley
6b8eb17a98
set e.Handled in textbox OnGotFocus.
8 years ago
Steven Kirk
f0afca5ead
Clear TextBox undo stack on binding change.
This makes `TextBox` act like WPF's `TextBox` where the undo/redo stack is cleared when a change is made from non-user input such as from a binding.
Fixes #336
8 years ago
sdoroff
e2ff0a0258
Fixed an off by one bug
8 years ago
Steven Kirk
83f795480b
Fixed #1376
8 years ago
Steven Kirk
e5800c17f1
Fix TextBlock click positioning.
When the click was outside the `TextPresenter`, it was not registering with the `TextBox` so the caret was being moved to the beginning.
8 years ago
Steven Kirk
b7de65f1aa
Fix TextBox text truncation.
Correctly set the value of the `TextBox`'s `HorizontalScrollBarVisibility` so that the text is not truncated.
Fixes #1354
8 years ago
sdoroff
5dce65f7b6
Created a shared DataValidationErrors framework
Moved Validation Error tracking to attached an attached property
Created an shared error indicator that can be simply added to control
templates and re-styled across all controls
This should reduce the need for code and markup duplication while
allowing for a consistent visual interface
8 years ago
sdoroff
267aab12ef
Altered OnKeyDown to accurately set handled
8 years ago
sdoroff
0a6da2cbfa
Altered OnKeyDown to accurately set handled
8 years ago
Steven Kirk
8a80a724d7
Implement disabling of ListBox scrollbars.
Fixes #1344 .
8 years ago
José Pedro
7cccc6bda0
Use nameof where possible.
8 years ago
Jeremy Koritzinsky
6d075ad27b
Fix #424 .
8 years ago
Jurjen Biewenga
3321887970
Made the invalidCharacters array static readonly and replaced the DEL char with the unicode representation
8 years ago
Jurjen Biewenga
410702da5b
Added array that is used to filter out certain characters the input to the textbox
9 years ago
Dan Walmsley
c37dd6cda9
null check on hide caret.
9 years ago
Dan Walmsley
2638f02cd6
fix null reference when focusing textbox in attached to visual tree,
but before ontemplate applied.
9 years ago
Nikita Tsukanov
0b756d0b8a
More null checks
9 years ago
Wiesław Šoltés
a26c261aad
Fixed OnPointerReleased parameter type
9 years ago
Steven Kirk
b28fffc3f8
Coerce TextBox.CaretIndex when setting Text.
Fixes #728 .
10 years ago
Steven Kirk
85f07274d4
Fixed failing test.
10 years ago
Steven Kirk
af696acc69
Removed gtkMode from Next/PreviousWord.
As we always want this behaviour.
10 years ago
Steven Kirk
715149b1f5
Improve stream operator error message.
When a stream operator is applied to an unsupported type.
10 years ago
Ivan Kochurkin
f940456d3e
gtkMode = true by default in NextWord and PreviousWord methods.
10 years ago
Ivan Kochurkin
8eea7fb4bc
fixes #686 : "End" key works incorrectly in TextBox.
10 years ago
Robbie Knuth
507bc51b59
Handle special case of deleting carriage returns and linefeeds in multiline textboxes.
10 years ago
Robbie Knuth
48760735ee
When a textbox gets focus via the tab key, select all text if the textbox is single line.
10 years ago
AndrewSt
795cb3bb9b
Change property LastState on TryGetLastState method and add HasState property in UndoRedoHelper
10 years ago
Steven Kirk
1b32a6aac3
Fixed unused member warnings.
That only show up on mono: seems the standard C# compiler silently
ignores most of these.
10 years ago
AndrewSt
e3f94011bc
Fix bug Pressing Ctrl-Z in a TextBox with no changes removes text #493
10 years ago
AndrewSt
c7b772b262
TextBox fix NullReference bug when Text=Empty and press Ctrl+A (SelectAll)
10 years ago
Steven Kirk
6e7fb76966
Allow movement to after last char with arrow keys.
Fixes #716 .
10 years ago
Steven Kirk
7cb001801a
Try to improve logged binding errors.
- Don't log an error when the target for the root ExpressionNode is
null. This is usually because the `DataContext` hasn't been set up yet
and it spewed a load of useless error messages.
- Add a Description field to `ExpressionObserver` that can be used in
the case of e.g. #control bindings to record the whole expression (with
the "#control" part) rather than just the part tracked by the
`ExpressionObserver`.
10 years ago
Steven Kirk
7206580175
Filter out broken binding errors in TextBox.
10 years ago