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
11 years ago
Nikita Tsukanov
7111572a2f
Implemented undo/redo for TextBox #204
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 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
Nikita Tsukanov
ff9bbbaa27
Fix for #101
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago
Steven Kirk
aa147f0423
More stylecoping.
11 years ago
Steven Kirk
ee8c211683
Renamed PerpexProperty coercion as validation.
As it can be used to invalidate a property change by throwing an
exception as well as coerce the value.
11 years ago
Steven Kirk
50415da22a
Undo last 2 commits - they were wrong.
11 years ago
Steven Kirk
e56252e64f
Stylecop!
11 years ago
Steven Kirk
1fe10092d9
Fix TextBox selection.
11 years ago
Steven Kirk
3efc8e8920
Improved tab focus handling a bit.
11 years ago
Steven Kirk
6fa126f827
Show keyboard focus adorner.
11 years ago
Steven Kirk
4299e7e046
Make TextBox handle text input.
Instead of TextPresenter - this fixes the problem of focus that we were
working around in TextBox.OnGotFocus before.
11 years ago
Steven Kirk
3c591482a9
Added hacky tab keyboard navigation.
This is a temporary workaround to #30 - it's very hacky:
- Tab key handling is built into TextBox - all other controls don't
work. It needs to be moved into InputElement.
- It only traverses siblings.
- Setting focus to template children is a hack.
- Many more problems.
11 years ago
Steven Kirk
39691aecc3
Simplified TextBox scrolling.
12 years ago