Steven Kirk
4c0b82a68d
Always use an IList (array) for DataValidationErrors.
It's dangerous to pass a non-collection IEnumerable to an ItemsControl
and will be made illegal at some point.
10 years ago
Steven Kirk
6db7687c78
Unpack AggregateException in TextBox.
10 years ago
Steven Kirk
41ba3b7782
Started adding TextBox error adornments.
10 years ago
Steven Kirk
a222fa9b0c
Don't modify text due to binding when typing.
If a TextBox is e.g. bound to an int and the user types "02" then the
TextBox text should be "02" - not the value that comes back from the
binding which will be "2".
10 years ago
Steven Kirk
4d0d7da969
Always call UpdateDataValidation on notification.
This speeds up the common path of no data validation: this way we don't
need to get the metadata unless a binding notification is received. This
means that if a binding with data validation is assigned to a property
that isn't interested then UpdateDataValidation will be called, but the
control should just ignore it.
10 years ago
Steven Kirk
d42d1319ff
`status` will no longer be null.
10 years ago
Steven Kirk
941246e75c
Started to implement data validation on TextBox.
Not working still - added a failing test to demonstrate it.
10 years ago
Steven Kirk
4fe2a3d86c
Removed vestiges of old data validation.
10 years ago
Steven Kirk
4906a472b0
Reimplemented data validation using BindingNotifications.
10 years ago
yusuf-gunaydin
f86d90613b
Implemented Ctrl+Backspace and Ctrl+Delete for TextBox.
Fixes #609
10 years ago
Steven Kirk
2d8a54ac62
Handle \r\n newlines in TextBox.
Fixes #501 .
10 years ago
Steven Kirk
5c33fbc6ee
Reimplemented property validation.
As far as it was in `property-validation-grokys` branch. Things were
messed up on master so had to merge this manually so may be problems.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
a91d21d0a4
Make some TextBox/Block properties direct.
10 years ago
Steven Kirk
f594785246
Don't swallow all KeyDown events in TextBox.
Fixes #423
10 years ago
danwalmsley
a02431c625
implemented ctrl + v, for textbox.
10 years ago
Steven Kirk
a6067c994e
CanScrollHorizontally shouldn't be an attached property.
10 years ago
Steven Kirk
d95af80ffa
Fix TextBox wrapping.
Fixes issue #475
10 years ago
Steven Kirk
f2ecce6cc2
Remove TextBox hacks.
Now that we can have attached properties in bindings.
10 years ago
Steven Kirk
1d6813b918
Handle empty text when double-clicking TextBox.
Fixes #458
10 years ago
Steven Kirk
2577855b09
Correctly resolve attached properties.
Design.Width/Height was getting written to Width/Height. Should fix
#428 .
10 years ago
Steven Kirk
3e3134217c
Fixed name of PointerPressedEventArgs.
10 years ago
danwalmsley
c4060802a8
Implemented textbox isreadonly property.
10 years ago
Steven Kirk
bb759a8785
We can now override the default binding mode.
So make TextBlock and TextBox have different default binding modes.
10 years ago
Steven Kirk
d25e057ccc
More WIP refactoring properties.
Compiles now but lots of tests failing.
10 years ago
Steven Kirk
1841e7ad7a
Start allowing Setters to contain bindings.
This is needed so that things like the following can be done:
<TreeView>
<TreeView.Styles>
<Style Selector="TreeViewItem">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"/>
</Style>
</TreeView.Styles>
<TreeView>
(At the moment we have TreeDataTemplate.IsExpanded but this isn't good
enough: it only supports setting IsExpanded on creation of the item with
no binding.)
With this commit, setters can now contain bindings, but they aren't yet
applied correctly. As part of this commit, classes related to binding
have been moved to the Perspex.Data namespace.
10 years ago
Steven Kirk
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
10 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
10 years ago
Nikita Tsukanov
7111572a2f
Implemented undo/redo for TextBox #204
10 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
10 years ago
Steven Kirk
16c2242757
Implemented NameScopes
Some tests still failing as controls are only registered with name scope
when attached to a rooted visual tree. Need to work around this by
explicitly registering controls when applying template.
11 years ago
Mikhail Kanygin
a9f5042073
Implemented TextAlignment property for TextBox.
11 years ago
Steven Kirk
34cca87b99
Removed workarounds.
11 years ago
Steven Kirk
142eaa1c7c
More work on XAML styles.
- Added "Control[Property=Value]" selector handling
- Added hacks for ExpressionObserver not currently handing attached
properties
- Added ContentControl style
- Fixed ScrollBar and TextBox
11 years ago
Steven Kirk
42da070678
Added TextBox XAML style.
Watermark not yet working - need to either expose properties controlling
visibility or add XAML multi-bindings.
11 years ago
Steven Kirk
4fd9434733
Special case for unstyled TextBox.
Don't throw exception on mouse mouse.
11 years ago
Steven Kirk
1b17b037cf
Use ContentAttribute to identify content property.
11 years ago
Dan Walmsley
7964321dd1
Implemented UseFloatingWaterMark property.
11 years ago
Dan Walmsley
fc76076c8a
Added implementation of Watermark for Textbox.
11 years ago
Nikita Tsukanov
79f8f76351
ref #198
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Nikita Tsukanov
f0e154ac90
ModifierKeys are now stored inside events
Ceterum censeo StyleCopum esse delendum
11 years ago
Nikita Tsukanov
8a4e62ef7b
Fixed textbox copy
11 years ago
Nikita Tsukanov
7f72c7763b
Implemented cursors. Ceterum censeo StyleCopum esse delendum.
11 years ago
Nikita Tsukanov
7e8d011f90
Implemented text clipboard support
11 years ago
Nikita Tsukanov
f24a6a0125
Fixed textbox control keys handling
11 years ago
Nikita Tsukanov
70dcfd652a
Now using TextInput event, WM_CHAR and GtkIMContext
11 years ago