Deadpikle
a8663cd1f3
Fix middle click being able to change selection
6 years ago
Deadpikle
1f18bd3e66
Only calculate caret index on pointer pressed if left mouse down
6 years ago
Deadpikle
f98ee717f5
Adjusted TextBox right-click behavior
WPF does not allow dragging to change selection for right clicks
Furthermore, it only changes the selection on mouse up of right click, not mouse down, and only if the user clicked outside the current selection.
This commit adjusts TextBox selection behavior to work like WPF
6 years ago
Deadpikle
a429159c3c
Add SelectedText to TextBox
6 years ago
Symbai
994def4642
Update TextBox.cs
6 years ago
Symbai
dc8881c846
Update TextBox.cs
6 years ago
Symbai
b814eaac99
inherit from ContentControl
6 years ago
Symbai
f4fe0b126c
init
6 years ago
Symbai
5ad2b362df
Update TextBox.cs
6 years ago
José Pedro
11b1ec2ded
Fixed PlatformHotkeyConfiguration obsolete API usage.
6 years ago
Steven Kirk
4c2b77fdb6
Snapshot undo text after paste.
Fixes #2732
6 years ago
Steven Kirk
6be3acb46c
Make ValueStore typed.
Major refactor of the Avalonia core to make the styled property store typed.
6 years ago
José Pedro
14b3683127
Replaced obsolete API usages.
7 years ago
Ben Carman
0486de87a6
MaxLength Property for TextBox
7 years ago
Dan Walmsley
28bf8937b5
fix NRE in textbox.
7 years ago
Nikita Tsukanov
9dad3f265b
Show caret even for ReadOnly textboxes, since keyboard selection works anyway
7 years ago
Abdulbaqi Alshareef
85fe3f23f4
Fix the indentation
7 years ago
Abdulbaqi Alshareef
e02de6cbb6
Fix the indentation
7 years ago
Abdulbaqi Alshareef
c67e405738
Add SelectionBrush and SelectionForegroundBrush Feature
7 years ago
Abdulbaqi Alshareef
434af7d56d
Add CaretBrush property to Textbox
7 years ago
FoggyFinder
44d467ba98
fix and test
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
8 years ago
Stano Turza
b4dcc14b8d
make sure pointer is always inside presenter
8 years ago
Nikita Tsukanov
4d2407192c
Added WholeWordTextActionModifiers
8 years ago
Nikita Tsukanov
e00f0f0385
Platform-specific key gestures
8 years ago
Andrey Kunchev
eabf122ce7
fix nits
8 years ago
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