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
Steven Kirk
02aed11911
TextBoxView -> TextPresenter
Instead of being a private implementation detail of TextBox, make it use
a presenter control that list linked to the main control using binding.
Should give a lot more fexibility.
12 years ago
Steven Kirk
01c7d028d0
Correctly apply nested templates.
When a templated control's template itself contains templated controls,
make sure all of the templates are applied, as the nested templated
control might contain something the top-most templated control is
looking for.
12 years ago
Steven Kirk
00aa02964f
Inplemented double and triple click in TextBox.
Copied a load of stuff from Moonlight regarding finding next/prev word
that I've put in StringUtils.
12 years ago
Nelson Carrillo
a6476cb7ec
- Added Ctrl+A to select all text in the TextBox
- Made the TextBox lose its selection when focus is lost.
12 years ago
Steven Kirk
645094ccec
Cancel TextBox selection on cursor movement.
12 years ago
Steven Kirk
9fa861e34b
Added mouse-select to TextBox.
12 years ago
Steven Kirk
eca1e1334e
Don't remove selection when nothing entered.
12 years ago
Steven Kirk
82f31f92f9
Replace selection in text boxes.
12 years ago
Steven Kirk
31a3b9ea78
Make Up/Down arrows work in text boxes.
12 years ago
Steven Kirk
9b6efbc3d2
Made End key work in multi-line text boxes.
12 years ago
Steven Kirk
050e9cc6e8
Make Home key work in multi-line text boxes.
12 years ago