Steven Kirk
aa147f0423
More stylecoping.
11 years ago
Steven Kirk
884c6539ce
Implemented directional navigation.
11 years ago
Steven Kirk
7b192505d7
Set TemplatedParent in popups.
Popups that appear in control templates should set the TemplatedParent
property of their child controls.
11 years ago
Steven Kirk
41244d58d5
Use ItemsPresenter in DropDown template.
Breaks a few things - they need properly fixing.
11 years ago
Steven Kirk
07aa92e1b7
Allow TabControl to reparent children of its Deck.
11 years ago
Steven Kirk
2d6d136418
Moved INamed to Perspex.Styling.
11 years ago
Steven Kirk
c7dc89f06b
Fixed applying control templates.
And added unit tests for it.
11 years ago
Steven Kirk
5303eb7cd8
Make all tests pass again.
Menus displaying weirdly though.
11 years ago
Steven Kirk
38e85a3f36
Started reworking reparenting controls.
11 years ago
Steven Kirk
12c8d3712d
Make TreeView work again, to an extent.
Still a bit of a hack: needs doing properly at some point.
11 years ago
Steven Kirk
77e81c4360
Make TabControl/Deck work again.
11 years ago
Steven Kirk
3010bc76fb
Use IItemContainerGenerator interface.
Instead of ItemContainerGenerator class.
11 years ago
Steven Kirk
ff331693f0
Started refactoring SelectingItemsControl.
11 years ago
Steven Kirk
ef50e97a2b
Added more ItemsPresenter tests.
Some of failing because of the way ItemContainterGenerator currently
works. Needs to be fixed.
11 years ago
Steven Kirk
362abd481c
Documented ItemsPresenter.
And tidied up a couple of things.
11 years ago
Steven Kirk
c0fc38358f
Refactored templates a bit.
Added interfaces, moved them to Controls.Templates namespace and added
base classes for common Func<> templates.
11 years ago
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.
12 years ago
Steven Kirk
7f608ffa6c
Fixed failing tests.
12 years ago
Steven Kirk
04673d539f
Fix TabControl logical parent.
12 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...
12 years ago
Steven Kirk
a267e1c070
DesiredSize doesn't need to be null.
12 years ago
Steven Kirk
73f7fdf59d
Round textbox caret to device pixels.
12 years ago
Steven Kirk
560707bfe2
Added page slide transition.
12 years ago
Steven Kirk
08aa54e16f
Added Transitions to TabControl.
Currently only one transition available: CrossFadeTransition, which is
demonstrated in the test app.
12 years ago
Steven Kirk
08da454529
Added a DeckPresenter.
Which displays only the active card.
12 years ago
Steven Kirk
39295aa8f2
Removed ItemsControl.MemberSelector.
It didn't work out.
12 years ago
Steven Kirk
2fbf3d0280
Make TabControl use Deck.
12 years ago
Steven Kirk
dd4bd88bd8
Added ItemsPresenter tests.
Needed to allow it to not be part of ItemsControl template to allow
easier testing.
12 years ago
Steven Kirk
b369c30a2e
Implemented Tab focus.
Should hopefully be the start of a non-hacky tab focus solution.
12 years ago
ncarrillo
74c82f3b63
Work on TextAlignment
12 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.
12 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.
12 years ago
Steven Kirk
78a80b2b75
Moved Tab key handling to InputElement.
12 years ago
Steven Kirk
53d804572d
Added TextBlock.FontWeight.
Closes #31 .
12 years ago
Steven Kirk
ae1fd0561e
Fix DataContext for ContentControl.
12 years ago
Steven Kirk
f2aa9fdd84
Moved DataTemplateExtensions to Templates n.s.
12 years ago
Steven Kirk
64c360641a
Fix scroll presenter child sizing.
Fixes #34 .
12 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.
12 years ago
Steven Kirk
bedd894f29
Correctly handle TextPresenter focus events.
Fixes #27 .
12 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
12 years ago
Steven Kirk
ef5531ec06
Don't crash when TextBox.Text == null.
12 years ago
Steven Kirk
e0d9804acf
Clear items when Items changes.
This allows us to work with lazily-evaluated IEnumerables.
12 years ago
Steven Kirk
a92219625a
Added generic Add/RemoveHandler methods.
Prevents annoying casts when calling.
12 years ago
Steven Kirk
5e6ffe635f
Call child arrange with full available size.
In ScrollViewer.
12 years ago
Steven Kirk
f013760ce5
Use consistent naming in base collections.
12 years ago