Steven Kirk
9a9132c42b
Manipulate logical parent thru ISetLogicalParent.
Ported from ideas branch. Also includes beginnings of INameScope
support, though nothing implements this interface yet.
11 years ago
Steven Kirk
ccb47bf6b7
Fix tab order in Deck.
11 years ago
Steven Kirk
9de4a11e18
Use tab navigation mode of ItemsPresenter
When creating ItemsPresenter's panel
11 years ago
Steven Kirk
c65c9fb7c6
Show access keys in menus.
Currently always shown, whether user pressed alt/f10 or not.
11 years ago
Steven Kirk
fef04a5f5d
Implemented Menus a bit better.
Now appear correctly in logical tree and use general-purpose mechanisms
rather than direct communication between MenuItems.
11 years ago
Steven Kirk
fceb9b1ba5
Fix ScrollContentPresenter measure/arrange.
11 years ago
Steven Kirk
7f608ffa6c
Fixed failing tests.
11 years ago
Steven Kirk
04673d539f
Fix TabControl logical parent.
11 years ago
Steven Kirk
67e6b2eaed
Fixed ScrollPresenter arrange.
And added tests because I think it's about the 5th time I've tried to
get this right...
11 years ago
Steven Kirk
a267e1c070
DesiredSize doesn't need to be null.
11 years ago
Steven Kirk
73f7fdf59d
Round textbox caret to device pixels.
11 years ago
Steven Kirk
560707bfe2
Added page slide transition.
11 years ago
Steven Kirk
08aa54e16f
Added Transitions to TabControl.
Currently only one transition available: CrossFadeTransition, which is
demonstrated in the test app.
11 years ago
Steven Kirk
08da454529
Added a DeckPresenter.
Which displays only the active card.
11 years ago
Steven Kirk
39295aa8f2
Removed ItemsControl.MemberSelector.
It didn't work out.
11 years ago
Steven Kirk
2fbf3d0280
Make TabControl use Deck.
11 years ago
Steven Kirk
dd4bd88bd8
Added ItemsPresenter tests.
Needed to allow it to not be part of ItemsControl template to allow
easier testing.
11 years ago
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.
11 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...
11 years ago
Steven Kirk
f5a856e109
Make ItemsControl items be logical children.
11 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.
11 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.
11 years ago
Steven Kirk
b20b94160d
Fix Font properties owner.
And make default values come from theme.
11 years ago
Steven Kirk
1c9cc11501
Run animation on UI thread.
11 years ago