Jumar Macato
43b94e997c
Expose Cut Copy and Paste methods for binding for context menus
6 years ago
Dan Walmsley
54cedcea87
dont allow text selection to be lost when context menu is opened... i.e. for copy and paste to work.
6 years ago
Dan Walmsley
03cc2dfff7
clear reveal password when lose focus.
6 years ago
Maksym Katsydan
87afc2ffa0
TextBox: Add :empty pseudoclass
6 years ago
Jumar Macato
8300b0c35d
rename prop
6 years ago
Jumar Macato
2a11f6801c
address review
6 years ago
Jumar Macato
661480e55c
polish
6 years ago
Jumar Macato
ffa8fa7262
implement ShowPassword Property in textpresenter and forward from textbox
6 years ago
Jumar Macato
32a34117e7
prototype
6 years ago
Jumar Macato
88a63dde2c
use contentpresenter
6 years ago
Jumar Macato
35a4662617
test
6 years ago
Jumar Macato
1af661666a
add InnerLeftContent and InnerRightContent
6 years ago
Benedikt Schroeder
09099c1234
Fix text wrapping for fluent TextBox
6 years ago
Steven Kirk
c2ad34a4ce
Fix moving caret left/right when selection present.
When a selection is present, pressing the left key should move the caret to the start of the selection and pressing the right key should move the caret to the end of the selection.
6 years ago
Steven Kirk
7b1a9fbb84
Fix caret not displaying when focused via Tab key.
Also set caret position to end when selecting all, as textboxes when selected should scroll to display the end of the text.
6 years ago
Steven Kirk
2fcde9e34d
Use OnApplyTemplate instead of OnTemplateApplied.
- More similar to WPF API
- Less bug-prone (see #3744 )
`OnTemplateApplied` still exists, but is deprecated and does nothing.
6 years ago
Deadpikle
9463e278a5
Fix undo not available for multiple key types
6 years ago
Deadpikle
d8f74b7e41
Cut now triggers an undo
6 years ago
Deadpikle
681911098c
SelectedText = null -> clear text
6 years ago
Deadpikle
14b227037b
Delete selection if SelectedText = ""
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Deadpikle
6c29598071
Fix clicking TextBox border moving to end
Twofold fix:
1) Cursor doesn't show IBeam when not in DockPanel
2) If you do click the border, it just focuses the text box -- it does not move the selection
6 years ago
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