Steven Kirk
ef5531ec06
Don't crash when TextBox.Text == null.
11 years ago
Steven Kirk
70ae10b077
Added UserControl.
11 years ago
Steven Kirk
83043a85fa
Updated NuGet pkgs.
11 years ago
Steven Kirk
af3697b907
Allow Windows to be shown as dialogs.
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
09092afe75
Use ICommand from System.Windows.Input.
11 years ago
Steven Kirk
9b59a954b2
Added IStyleable.StyleKey.
Most controls want to be styled based on their type, however windows
derived from Window will usually want to be styled as Window. Added an
IStyleable.StyleKey property to select the type that a control is styled
on.
11 years ago
Steven Kirk
a72e8e243d
Added ICommand and use it in Button.
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
a92219625a
Added generic Add/RemoveHandler methods.
Prevents annoying casts when calling.
11 years ago
Steven Kirk
01e97aec7e
Removed Preview* tunneling events.
You need to call AddHandler to get to them now.
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
c709c1c1ef
Fix dropdown selection again.
But break it closing on selection. Need to fix eventing a bit before
this can work.
11 years ago
Steven Kirk
5e6ffe635f
Call child arrange with full available size.
In ScrollViewer.
11 years ago
Steven Kirk
e16444b33e
Make dropdown open with a click anywhere....
...on its surface.
11 years ago
Steven Kirk
8bfddb64a8
Set logical parent before visual parent in Panel.
Otherwise the Descendent styling selector won't find the control.
11 years ago
Steven Kirk
7f1c3e760e
Make DropDown have correct logical children.
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
1c8a53a880
Test correct result from TabControl logical child.
Doesn't actually pass yet...
11 years ago
Steven Kirk
6c32bf8ddf
Get logical children from the right place.
11 years ago
Steven Kirk
f3e362dddb
Fix DevTools.
And add test to make sure it doesn't happen again.
11 years ago
Steven Kirk
7aa634cbe7
Started adding TemplateExtensions tests.
11 years ago
Steven Kirk
62901f02d5
Started adding ScrollContentPresenter tests.
11 years ago
Steven Kirk
5a1aca2876
Make template find methods to extension class.
11 years ago
Steven Kirk
ccf4f06a93
Clarified ContentControl not having a presenter.
I kept wondering why I'd written it that way.
11 years ago
Steven Kirk
d25c4e0b4c
Some work on TabControl/TabStrip.
11 years ago
Steven Kirk
50c49c87d5
Fixed failing test.
Can't do a TakeWhile because GetVisualDescendents() goes depth-first
instead of breadth-first
11 years ago
Steven Kirk
574c7a9113
Fixed according to TODO.
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
5b11c9f851
Fix bug in tree view style.
ItemsPresenter didn't have an ID. Also don't return null for logical
children of an ItemsControl with no presenter.
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
57dab3d7d0
Set dropdown popup min width.
11 years ago
Steven Kirk
95d9e6f106
Stylecop fixes.
11 years ago
Steven Kirk
3441a64876
Removed unused members.
11 years ago
Steven Kirk
8d2006c968
Make dropdown close on click.
11 years ago
Steven Kirk
b42d472b65
Added class RoutedEvent handlers.
11 years ago
Steven Kirk
467dd1b318
Revert "Fix scrollviewer causing lockups."
This reverts commit 18e3900edc .
11 years ago
Steven Kirk
18e3900edc
Fix scrollviewer causing lockups.
Add a throttle to showing/hiding scrollbars to prevent them flashing on
and off.
11 years ago
Steven Kirk
41fe7e28aa
Hack dev tools to work again.
Need to fix the root layout problem that hangs it though.
11 years ago
Steven Kirk
374d1723a2
Handle dropdown selection.
11 years ago
Steven Kirk
e2a67e42c7
Prevent popup from deactivating parent window.
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
7a55e20f98
Fix GetTemplateControls
Make it return only controls that in the immediate template. Not sure
why it was returning nested templated controls before. The may have been
a reason but everything still seems to work like this...
11 years ago
Steven Kirk
7a8a9123c3
Implement ILogical on DropDown.
11 years ago
Steven Kirk
1b1d60d0c0
Make popup appear in right place.
11 years ago
Steven Kirk
06bf45ace3
Initial implementation of dropdown.
The popup appears in the wrong place, has placeholder content and steals
the main window focus, but it appears!
11 years ago