Steven Kirk
a4c88ca764
Reworked bindings.
Now, two way bindings work as expected and setting a local value on a
property with a binding sets the value temporarily until the binding
changes value.
11 years ago
Steven Kirk
ddb125659e
Fix focus adorners a bit.
11 years ago
Steven Kirk
c1b1339286
Make focus adorner styleable.
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
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
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
83043a85fa
Updated NuGet pkgs.
11 years ago
Steven Kirk
e16444b33e
Make dropdown open with a click anywhere....
...on its surface.
11 years ago
Steven Kirk
284c243250
Make items in dropdown list have hover effect.
11 years ago
Steven Kirk
7f1c3e760e
Make DropDown have correct logical children.
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
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
57dab3d7d0
Set dropdown popup min width.
11 years ago
Steven Kirk
8d2006c968
Make dropdown close on click.
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
e70f4363ac
Make items show in 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
Steven Kirk
0f823cd387
Started implementing DropDown.
Mostly not yet implemented.
12 years ago
Steven Kirk
23c4a9a87f
Moved some more properties out of Control.
Border and Foreground properties didn't make sense there.
12 years ago
Steven Kirk
c4b3c9ffc1
Make logical tree work for ScrollViewer.
12 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...
12 years ago
Steven Kirk
2c1d2cb7a8
Display logical tree in DevTools.
12 years ago
Steven Kirk
0441074f84
Bind TextBox.Text two-way in template.
12 years ago
Steven Kirk
90273c74dd
Added missing Ids to templates.
And allow ContentControl to not have a ContentPresenter in its control
template, as one isn't needed for TreeViewItem for example.
12 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.
12 years ago
Steven Kirk
b20b94160d
Fix Font properties owner.
And make default values come from theme.
12 years ago
Steven Kirk
a9a569557b
Moved some properties around.
- Moved Background out of Control. Fixes #14 .
- Added Font properties to TemplatedControl.
12 years ago
Steven Kirk
7663fcb8ff
Improve TreeViewItem expanders.
12 years ago
Steven Kirk
fc4d5ce32a
Added simple property transition animation.
Animation's a bit choppy though!
12 years ago
Steven Kirk
cf959fd8eb
Added RadioButton control.
12 years ago
Steven Kirk
29c1342c44
Center the CheckBox label.
12 years ago
Steven Kirk
d9d88cdfeb
Improve CheckBox style.
Give it a proper tick (taken from MahApps.Metro) and improve the
spacing.
12 years ago
Steven Kirk
39691aecc3
Simplified TextBox scrolling.
12 years ago
Steven Kirk
542e81d129
Implemented TextBox scrolling.
12 years ago
Steven Kirk
02aed11911
TextBoxView -> TextPresenter
Instead of being a private implementation detail of TextBox, make it use
a presenter control that list linked to the main control using binding.
Should give a lot more fexibility.
12 years ago
Steven Kirk
9358aa8527
Styled ToggleButton.
12 years ago
Steven Kirk
42f7254393
Added IsEnabled.
12 years ago
Steven Kirk
a833a5e883
Stylecop fixes.
Also added solution-wide stylecop settings.
12 years ago
Steven Kirk
9a1c5825d4
Added ListBox.
And moved all item selecting logic etc in SelectingItemsControl where it
should be.
12 years ago
Steven Kirk
c999d45e94
WIP refactoring Window.
To make it x-platform. Currently breaks input.
12 years ago
Steven Kirk
192e66179c
Initial implementation of GTK windowing system.
Displays a window. Doesn't do anything with it yet.
12 years ago
Steven Kirk
033c686456
Added ScrollViewer to TreeViewStyle.
12 years ago
Steven Kirk
1a898d83aa
Started adding ScrollViewer.
Currently works so far as to scroll an image in the Images tab of the
test app. Hiding the scrollbars is currently disabled as it requires a
layout pass to be triggered during a layout pass. Need to work out a
way around that...
12 years ago
Steven Kirk
23a8f9ab5d
Fix scrollbar values.
12 years ago