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
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
a267e1c070
DesiredSize doesn't need to be null.
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
ae1fd0561e
Fix DataContext for ContentControl.
11 years ago
Steven Kirk
f2aa9fdd84
Moved DataTemplateExtensions to Templates n.s.
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
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
b28b5e5a23
Tidied up Presenter/TemplatedParent logic a bit.
11 years ago
Steven Kirk
95d9e6f106
Stylecop fixes.
11 years ago
Steven Kirk
e0960f5891
Added IDataTemplate interface.
11 years ago
Steven Kirk
350b2444e2
Fix layout calculations w/margins.
11 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
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
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.
12 years ago
Steven Kirk
af492b5d75
Started refactoring lyaout.
To make it faster. Currently all broken :/
12 years ago
Steven Kirk
3dbd669f7b
Added Layoutable.ApplyTemplate.
Rather than each different presenter/templated control rolling their
own.
12 years ago
Steven Kirk
033c686456
Added ScrollViewer to TreeViewStyle.
12 years ago
Steven Kirk
76ba899dbd
Make templates etc get applied on measure.
Instead of when iterating visual children. This because everything is
likely to be set up by that point.
12 years ago
Steven Kirk
d9cd5ba3ab
Code was moved to MeasureCore.
12 years ago
Steven Kirk
16f2fccd42
Added content alignment properties.
And align button contents in the center of the button.
12 years ago
Steven Kirk
491dfa58bd
Move presenters to own namespace.
To try and discourage their use outside control templates.
12 years ago
Steven Kirk
e696dde0ec
Things now display correctly.
No keyboard input though.
12 years ago
Steven Kirk
2398387740
More things rendering, more tests passing...
12 years ago
Steven Kirk
bfadaac5d9
Non-building checkpoint in MAJOR refactor.
12 years ago
Steven Kirk
19459f9c5b
Added some more tests.
Still don't show up the bug I'm looking for...
12 years ago
Steven Kirk
454393b71a
Added TabControl.
12 years ago
Steven Kirk
173ed94df2
Added beginnings of TabStrip control.
12 years ago
Steven Kirk
b2806a77a9
Make TemplatedParent inherit.
12 years ago
Steven Kirk
435f4df665
Added start of ItemsControl.
12 years ago
Steven Kirk
1ee1e0b85d
Added DataTemplates.
12 years ago
Steven Kirk
af9f8408eb
Moved layout stuff into Layoutable
Out of Control.
12 years ago
Steven Kirk
0b81fc2ca0
Change Visibility to IsVisible.
12 years ago
Steven Kirk
d47163353b
Moved alignment into child Control.
12 years ago
Steven Kirk
c1a0931445
Added (VERY!) basic checkbox
12 years ago
Steven Kirk
d90133677b
Added StackPanel.
12 years ago
grokys
b292905a84
Separated visual and logical tree into interfaces.
IVisual and ILogical, duh.
12 years ago
grokys
4080c18f59
Added IVisual interface.
12 years ago
grokys
f39d2a3f3a
Tidied up a bit.
12 years ago
grokys
a777d24824
Change button color on mouseover! Woo!
12 years ago
grokys
3cdda17ef6
Added FontSize/VisualParent.
13 years ago
grokys
cd2b7530f5
Initial commit
13 years ago