Steven Kirk
2763e59adb
Use serilog for logging.
11 years ago
Steven Kirk
7f608ffa6c
Fixed failing tests.
11 years ago
Steven Kirk
d6d7de662c
Don't make SelectingItemsControl focusable for now.
11 years ago
Steven Kirk
a267e1c070
DesiredSize doesn't need to be null.
11 years ago
Steven Kirk
bf9071dcd0
Fix ScrollBar.Value.
Wasn't being updated inside ListBox and this is why...
11 years ago
Steven Kirk
0e4219ecb9
Set default value for SelectedIndex.
11 years ago
Steven Kirk
fbd33a2163
Ensure IsSelected set on ApplyTemplate.
11 years ago
Steven Kirk
55fbe43214
Fix SelectingItemsControl.CoerceSelectedItem
11 years ago
Steven Kirk
d27205716a
Handle deselecting removed items...
in SelectingItemsControl.
11 years ago
Steven Kirk
5600ee32a4
Handle null Items in SelectingItemsControl.
11 years ago
Steven Kirk
18a976dc55
Added IEnumerable extension methods.
As we're working on a non-generic IEnumerable in ItemsControl related
controls.
11 years ago
Steven Kirk
41e434e13b
Added SelectedItemsControl.SelectedIndex
11 years ago
Steven Kirk
18ae814775
Make SelectingItemsControl abstract.
As it displays nothing by default.
11 years ago
Steven Kirk
06e0dde700
Track adorned element position.
Closes #38 . Still need to track transforms and clip rectangles, but good
enough for now.
11 years ago
Steven Kirk
30ce103d8d
Scroll list box with selection.
Fixes #33 , however the focus adorner is displayed in the wrong position.
#38 will fix this.
11 years ago
Steven Kirk
5da890fbfb
Don't handle keypresses in TabControl.
11 years ago
Steven Kirk
87a87a4495
Only handle arrow keys!
11 years ago
Steven Kirk
8f46c1360d
Make focus follow listbox selection.
11 years ago
Steven Kirk
c29cac0b9f
Improve directional naviation a bit.
In SelectingItemsControl. Still not completely there as we should do a
visual search in the absence of INavigablePanel (e.g. for Canvas, Grid).
Fixes half of #44 .
11 years ago
Steven Kirk
b369c30a2e
Implemented Tab focus.
Should hopefully be the start of a non-hacky tab focus solution.
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
783211c964
Added Visual.ZIndex.
And set ZIndex of adorner layer to top-most.
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
c27ddbb17c
Removed ActualSize property - use Bounds instead.
11 years ago
Steven Kirk
5bcd8ecd91
Added Padding to TemplatedControl.
11 years ago
Steven Kirk
ab916df3dc
Fix dropdown open/close behavior.
Now that new eventing stuff is in place.
Also fix bug with AddClassHandler where it was triyng to call every
object irregardless of whether it was the correct type.
11 years ago
Steven Kirk
78901c776e
Make class handlers work again.
11 years ago
Steven Kirk
aa63b5fa15
Started refactoring events.
Tunnelled and bubbling events can now be represented by a single
RoutedEvent. Next need to implement 'handledEventsToo'.
11 years ago
Steven Kirk
5a1aca2876
Make template find methods to extension class.
11 years ago
Steven Kirk
d25c4e0b4c
Some work on TabControl/TabStrip.
11 years ago
Steven Kirk
2417ac1077
Trying to sort out logical tree for ItemsControls.
Not yet complete.
This reverts commit 7a55e20f98 .
The reason that searching for template controls needs to search nested
templates is because e.g. an ItemsPresenter may be nested inside a
ScrollViewer.
11 years ago
Steven Kirk
b28b5e5a23
Tidied up Presenter/TemplatedParent logic a bit.
11 years ago
Steven Kirk
95d9e6f106
Stylecop fixes.
11 years ago
Steven Kirk
b42d472b65
Added class RoutedEvent handlers.
11 years ago
Steven Kirk
374d1723a2
Handle dropdown selection.
11 years ago
Steven Kirk
adb9ce49d2
Make DropDown's dropdown a ListBox.
11 years ago
Steven Kirk
fc5ff22d8e
Search logical tree for DataTemplates.
11 years ago
Steven Kirk
23c4a9a87f
Moved some more properties out of Control.
Border and Foreground properties didn't make sense there.
11 years ago
Steven Kirk
2c1d2cb7a8
Display logical tree in DevTools.
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
a9a569557b
Moved some properties around.
- Moved Background out of Control. Fixes #14 .
- Added Font properties to TemplatedControl.
11 years ago
Steven Kirk
cf959fd8eb
Added RadioButton control.
11 years ago
Steven Kirk
39691aecc3
Simplified TextBox scrolling.
11 years ago
Steven Kirk
542e81d129
Implemented TextBox scrolling.
11 years ago
Steven Kirk
d575dfa773
Moved Perspex <-> D2D conversions to ext. methods.
11 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.
11 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.
11 years ago
Steven Kirk
c28c7e6b7a
Removed debug code.
11 years ago
Steven Kirk
43e1e3c168
Fixed final layout problem i'm aware of.
(Currently!)
11 years ago