Steven Kirk
b1b5dd5ba2
Make Popup.IsOpen a direct property.
This fixes Menu and DropDown.
11 years ago
Steven Kirk
2c9e1f8f7c
Correctly handle clicks outside Popups.
Set e.Handled = true on click outside Popup which removes the need for
the _closing stuff in DropDown.
11 years ago
Steven Kirk
f37c4a9059
Only close Popup when click is outside PopupRoot.
11 years ago
Steven Kirk
2b09f5f6d1
Fix DropDown dropping down.
Make clicking on an open DropDown close it, and wire up the ToggleButon.
11 years ago
Nikita Tsukanov
84af63ce1e
Added Position property, moved Hide/Show to ITopLevelImpl
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 years ago
Steven Kirk
16c2242757
Implemented NameScopes
Some tests still failing as controls are only registered with name scope
when attached to a rooted visual tree. Need to work around this by
explicitly registering controls when applying template.
11 years ago
Steven Kirk
2b8b5103f3
Added DropDown style.
There are a few things still missing before it can work.
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Nikita Tsukanov
21a3554260
Change property getter to expression properties
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago
Steven Kirk
c301f8d922
Make DropDown mouse selection work.
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
85dfbbb6d5
Moved Popup to Primitives namespace.
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
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
15cbcdc648
Fix popup placement.
11 years ago
Steven Kirk
018d99d91e
Use a different approach to access keys in menu.
Create a MenuItemAccessKeyHandler that handles the plain keys without
alt, and inject it into the submenu popups.
11 years ago
Steven Kirk
cb38875f82
Documented Popup/PopupRoot.
11 years ago
Steven Kirk
43e80392df
Started adding keyboard accessibility to Menu.
Still quite a lot to do.
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
2c066f0f5d
Allow DevTools to inspect popup visual trees.
11 years ago
Steven Kirk
31d51123f6
Make Popup children be part of logical tree.
11 years ago
Steven Kirk
0048460b88
Added Popup.PlacementMode.
Hacky: only supports Bottom and Right so far, and doesn't take into
account screen edges etc.
11 years ago
Steven Kirk
c27ddbb17c
Removed ActualSize property - use Bounds instead.
12 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.
12 years ago
Steven Kirk
a92219625a
Added generic Add/RemoveHandler methods.
Prevents annoying casts when calling.
12 years ago
Steven Kirk
01e97aec7e
Removed Preview* tunneling events.
You need to call AddHandler to get to them now.
12 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.
12 years ago
Steven Kirk
e16444b33e
Make dropdown open with a click anywhere....
...on its surface.
12 years ago
Steven Kirk
57dab3d7d0
Set dropdown popup min width.
12 years ago
Steven Kirk
95d9e6f106
Stylecop fixes.
12 years ago
Steven Kirk
8d2006c968
Make dropdown close on click.
12 years ago
Steven Kirk
374d1723a2
Handle dropdown selection.
12 years ago
Steven Kirk
fc5ff22d8e
Search logical tree for DataTemplates.
12 years ago
Steven Kirk
1b1d60d0c0
Make popup appear in right place.
12 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!
12 years ago
Steven Kirk
0f823cd387
Started implementing DropDown.
Mostly not yet implemented.
12 years ago