Steven Kirk
c74e5726fc
Ported warning fixes from #4882 .
Co-Authored-By: workgroupengineering <workgroupengineering@users.noreply.github.com>
5 years ago
Nikita Tsukanov
35b365d97d
Implemented basic IME support for Linux
5 years ago
Dariusz Komosinski
960ae38ecd
Fix TextBox crashing when PointerMoved gets called and text presenter has 0 size.
5 years ago
Steven Kirk
58c333b6f1
Added PseudoClassesAttribute.
And apply it to our controls. Can be used by designers to add auto-completion support for pseudoclasses.
6 years ago
Jumar Macato
517e860b27
Disable commands when Textbox is on password textbox mode.
6 years ago
Dan Walmsley
076d23c903
cant cut when readonly..
6 years ago
Dan Walmsley
6b872692d3
tidy code.
6 years ago
Dan Walmsley
6f96ef6fbd
add gesture text.
6 years ago
Jumar Macato
e6e2319dc3
add context menu
6 years ago
Jumar Macato
bb8e594e58
Expose Cut Copy and Paste methods for binding for context menus
6 years ago
Dan Walmsley
abfa846e9d
add comments and move public method above private and protected.
6 years ago
Dan Walmsley
059e46f592
make clear selection public.
6 years ago
Dan Walmsley
d6f70744e6
extract clear selection to method.
6 years ago
Dan Walmsley
24ea1f618f
[TextBox] keep caret index when clearing selection.
6 years ago
danwalmsley
bc42091ce9
Revert "Expose Cut Copy and Paste methods for binding for context menus"
6 years ago
Dan Walmsley
71109100eb
tidy code.
6 years ago
Dan Walmsley
e93ac83ae4
add gesture text.
6 years ago
Jumar Macato
fb75a836be
add context menu
6 years ago
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