Steven Kirk
b369c30a2e
Implemented Tab focus.
Should hopefully be the start of a non-hacky tab focus solution.
11 years ago
ncarrillo
74c82f3b63
Work on TextAlignment
11 years ago
Steven Kirk
fcb746a1c4
Initial implementation of adorners.
Adorn elements when moused over in DevTools. Still a fair few things
missing including:
- Need to track position of adorned elements and move the adorner if
they move.
- Adorner is shown beneath AdornerDecorator contents. Need to implement
Z-index to allow it to be shown above.
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
78a80b2b75
Moved Tab key handling to InputElement.
11 years ago
Steven Kirk
53d804572d
Added TextBlock.FontWeight.
Closes #31 .
11 years ago
Steven Kirk
ae1fd0561e
Fix DataContext for ContentControl.
11 years ago
Steven Kirk
f2aa9fdd84
Moved DataTemplateExtensions to Templates n.s.
11 years ago
Steven Kirk
64c360641a
Fix scroll presenter child sizing.
Fixes #34 .
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
bedd894f29
Correctly handle TextPresenter focus events.
Fixes #27 .
11 years ago
Steven Kirk
188f4c6b78
Set DataContext when materializing data templates.
- Rename ApplyDataTemplate to MaterializeDataTemplate.
- Use MaterializeDataTemplate in ContentPresenter.
- Make DataContext property inherit.
Cherry-picked from GitHubClient branch.
Conflicts:
Perspex.Controls/Control.cs
11 years ago
Steven Kirk
ef5531ec06
Don't crash when TextBox.Text == null.
11 years ago
Steven Kirk
e0d9804acf
Clear items when Items changes.
This allows us to work with lazily-evaluated IEnumerables.
11 years ago
Steven Kirk
a92219625a
Added generic Add/RemoveHandler methods.
Prevents annoying casts when calling.
11 years ago
Steven Kirk
5e6ffe635f
Call child arrange with full available size.
In ScrollViewer.
11 years ago
Steven Kirk
f013760ce5
Use consistent naming in base collections.
11 years ago
Steven Kirk
fb08924070
Make TabControl logical child test pass.
And simplified logic in selecting ContentControl logical child.
11 years ago
Steven Kirk
62901f02d5
Started adding ScrollContentPresenter tests.
11 years ago
Steven Kirk
d25c4e0b4c
Some work on TabControl/TabStrip.
11 years ago
Steven Kirk
b28b5e5a23
Tidied up Presenter/TemplatedParent logic a bit.
11 years ago
Steven Kirk
df08657e71
Tidied up ItemsControl logical parenting a bit.
11 years ago
Steven Kirk
95d9e6f106
Stylecop fixes.
11 years ago
Steven Kirk
3441a64876
Removed unused members.
11 years ago
Steven Kirk
fc5ff22d8e
Search logical tree for DataTemplates.
11 years ago
Steven Kirk
e0960f5891
Added IDataTemplate interface.
11 years ago
Steven Kirk
350b2444e2
Fix layout calculations w/margins.
12 years ago
Steven Kirk
7c09351939
Make logical tree work for TabControl.
It only contains the currently visible tab - I'm not so happy about
this...
12 years ago
Steven Kirk
f5a856e109
Make ItemsControl items be logical children.
12 years ago
Steven Kirk
309ac30a41
Make ContentControl child be logical child.
The control this is created by the ContentPresenter now appears as the
logical child of the parent ContentControl.
12 years ago
Steven Kirk
9a994e582c
Moved VisualTree extensions into own namespace.
So that they don't pollute the whole Perspex namespace - you now need to
"opt-in" to the visual tree.
12 years ago
Steven Kirk
b20b94160d
Fix Font properties owner.
And make default values come from theme.
12 years ago
Steven Kirk
1c9cc11501
Run animation on UI thread.
12 years ago
Steven Kirk
6d45c57dbb
Added simple animation.
12 years ago
Steven Kirk
2dafd77beb
Removed unneeded code.
12 years ago
Steven Kirk
f36ab8a2f1
Don't let TextBox collapse when it has no text.
12 years ago
Steven Kirk
d2d94da177
Fix TextBlock constraint not getting initialized.
12 years ago
SuperJMN
839302c997
Fixed entering of letter A
12 years ago
Steven Kirk
39691aecc3
Simplified TextBox scrolling.
12 years ago
Steven Kirk
542e81d129
Implemented 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
55a11d8dfd
More stylecop fixes.
12 years ago
Steven Kirk
af492b5d75
Started refactoring lyaout.
To make it faster. Currently all broken :/
12 years ago
Steven Kirk
7f90f5c8e6
Added mousewheel support to ScrollViewer.
12 years ago
Steven Kirk
a833a5e883
Stylecop fixes.
Also added solution-wide stylecop settings.
12 years ago
Steven Kirk
3dbd669f7b
Added Layoutable.ApplyTemplate.
Rather than each different presenter/templated control rolling their
own.
12 years ago
Steven Kirk
033c686456
Added ScrollViewer to TreeViewStyle.
12 years ago
Steven Kirk
76ba899dbd
Make templates etc get applied on measure.
Instead of when iterating visual children. This because everything is
likely to be set up by that point.
12 years ago
Steven Kirk
1a898d83aa
Started adding ScrollViewer.
Currently works so far as to scroll an image in the Images tab of the
test app. Hiding the scrollbars is currently disabled as it requires a
layout pass to be triggered during a layout pass. Need to work out a
way around that...
12 years ago