Abdulbaqi Alshareef
85fe3f23f4
Fix the indentation
7 years ago
Abdulbaqi Alshareef
c67e405738
Add SelectionBrush and SelectionForegroundBrush Feature
7 years ago
ahopper
c72195f45b
Fix use of CoerceCaretIndex on Text change
7 years ago
Dan Walmsley
f394da73e5
dont set ibeam cursor on textbox textpresenter.
7 years ago
Stano Turza
3dd51660df
use MathUtilities.Clamp
7 years ago
Stano Turza
b4dcc14b8d
make sure pointer is always inside presenter
7 years ago
Nikita Tsukanov
4d2407192c
Added WholeWordTextActionModifiers
7 years ago
Nikita Tsukanov
e00f0f0385
Platform-specific key gestures
7 years ago
Andrey Kunchev
eabf122ce7
fix nits
7 years ago
Andrey Kunchev
3b302006fd
fix failing text e.g. restore carretIndex in textbox when text changed
7 years ago
Andrey Kunchev
0959be5e01
fix for textbox OutOfRangeException issue #1954
7 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
8 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 .
9 years ago
Steven Kirk
85f07274d4
Fixed failing test.
9 years ago
Steven Kirk
af696acc69
Removed gtkMode from Next/PreviousWord.
As we always want this behaviour.
9 years ago
Steven Kirk
715149b1f5
Improve stream operator error message.
When a stream operator is applied to an unsupported type.
9 years ago
Ivan Kochurkin
f940456d3e
gtkMode = true by default in NextWord and PreviousWord methods.
9 years ago
Ivan Kochurkin
8eea7fb4bc
fixes #686 : "End" key works incorrectly in TextBox.
9 years ago