Steven Kirk
567f0135ff
Make TemplatedParent inherit.
This means that we only need to set the TemplatedParent on the root of a
control's template, and on presenter children.
11 years ago
Steven Kirk
db1e20acc8
Only allow pseudoclasses to be set by control.
Limit adding/removing pseudoclasses to IPseudoClasses interface.
11 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
11 years ago
Steven Kirk
5d2658d856
Make IStyleable.Classes an IPerspexReadOnlyList.
So we can mock it.
11 years ago
Steven Kirk
195fb6df3b
Renamed OnDataContextFinishedChanging
To OnDataContextChanged and added DataContextChanged event.
11 years ago
Steven Kirk
626aa9cd19
Fix SelectingItemsControl.SelectedItems bug.
Make sure unbound SelectedItems cleared when DataContext is cleared.
11 years ago
Steven Kirk
d004426b28
Allow styles to apply across popup contexts.
By defining a StylingParent property and tying it to InheritanceParent.
Fixes #312 .
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 years ago
Steven Kirk
9eb54f59d2
Fixed name scopes.
Controls were being registered with the nearest name scope on the visual
tree, whereas they should be registered by traversing the logical tree.
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
afb5e169de
Implemented more control styles in XAML.
Now removed DefaultTheme so only XAML styles are taking affect.
11 years ago
Steven Kirk
6a005d35c8
Make TreeView selection work etc.
Unfortunately stuff is still broken - I think ItemContainerGenerator
needs a refactor.
11 years ago
Steven Kirk
e824458a00
Fix DataContext binding problem with SelectedItems.
This one has to be solved in SelectingItemsControl as the property is
not updated via a binding.
11 years ago
Steven Kirk
d87bcde7be
Added ResetBehavior to PerspexList.
As sometimes you want to know something is a reset rather than a remove.
11 years ago
Steven Kirk
454cd679f0
Renamed references to "id" -> "name".
11 years ago
Steven Kirk
5c4d2b84a3
Started converting PPs to direct PPs.
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Nikita Tsukanov
3cd3579475
"field can be readonly"
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
7954d52a24
Documentation
11 years ago
Steven Kirk
e320148952
Removed AdornerTemplate.
Use ITemplate<IControl>.
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
d89930e9f0
Show focus adorner when using directional keys.
11 years ago
Steven Kirk
d161428f52
Pass navigation method in GotFocus event.
And only focus selectable items when focus comes from the pointer, or
directional keys.
11 years ago
Steven Kirk
884c6539ce
Implemented directional navigation.
11 years ago
Steven Kirk
ab697a24b9
Removed no longer needed collections.
Now that reparenting works correctly.
11 years ago
Steven Kirk
38e85a3f36
Started reworking reparenting controls.
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
92c4f502a2
Removed INameScope.
No point having it in there if it's not used.
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
05ec12e2cf
Added IControl interface.
11 years ago
Steven Kirk
7775f9f942
Documented Control class.
11 years ago
Steven Kirk
ba8552cb81
Renamed Id to Name.
No reason to be different for the sake of it.
11 years ago
Steven Kirk
04673d539f
Fix TabControl logical parent.
11 years ago
Steven Kirk
aef34f810d
Stylecop fixes.
11 years ago
Steven Kirk
c1b1339286
Make focus adorner styleable.
11 years ago
Steven Kirk
b8db5c2b75
Lose focus when control removed from visual tree.
11 years ago
Steven Kirk
6fa126f827
Show keyboard focus adorner.
11 years ago
Steven Kirk
c27ddbb17c
Removed ActualSize property - use Bounds instead.
11 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
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
aa63b5fa15
Started refactoring events.
Tunnelled and bubbling events can now be represented by a single
RoutedEvent. Next need to implement 'handledEventsToo'.
12 years ago
Steven Kirk
f013760ce5
Use consistent naming in base collections.
12 years ago
Steven Kirk
b28b5e5a23
Tidied up Presenter/TemplatedParent logic a bit.
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
2c1d2cb7a8
Display logical tree in DevTools.
12 years ago
Steven Kirk
f5a856e109
Make ItemsControl items be logical children.
12 years ago