Steven Kirk
1f71d941fb
Fix Image measure.
Should return a DesiredSize which fits in the constraint.
10 years ago
Steven Kirk
f7f2fc65b7
Make Arrange call Measure if !IsMeasureValid.
To follow WPF. Also removed force parameter from Arrange and fixed
Decorator measure invalidation.
10 years ago
Steven Kirk
5489487131
Make LayoutManager global.
Also made a few other changes along the way:
- Add MaxClientSize to ILayoutRoot
- Store IRenderRoot in Visual and use that to calculate
IsAttachedToVisualTree
- Make Affects* methods take multiple properties
10 years ago
Steven Kirk
28b6de1019
Make Shapes update their geometry.
When a property that affects the Shape's geometry is changed, make sure
the DefiningGeometry gets updated.
10 years ago
Steven Kirk
7a8b50de8f
Cache Polygon/Polyline geometry.
10 years ago
Steven Kirk
e91f551263
Added missing file headers.
And sorted usings.
10 years ago
Steven Kirk
1309bb3e1b
Updated new control's properties.
From PerspexProperty to StyledProperty.
10 years ago
Steven Kirk
bb759a8785
We can now override the default binding mode.
So make TextBlock and TextBox have different default binding modes.
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
89dc27f276
All tests now passing.
10 years ago
Ivan Kochurkin
3fb89ded78
Fixed @kekekeks notes.
10 years ago
Steven Kirk
d25e057ccc
More WIP refactoring properties.
Compiles now but lots of tests failing.
10 years ago
Steven Kirk
03e2ff8784
WIP: Splitting PerspexProperty up
10 years ago
Ivan Kochurkin
5b79178947
Added LineJoin parameter to geometric primitives.
Fixed Bounds for Line, Polygon, Polyline.
10 years ago
Steven Kirk
3beea47bf7
Replace DockPanel implementation.
The old one was broken - replaced by the implementation from
WinRTXamlToolkit which is both simpler and works correctly. Also added
some tests. This closes #397 , closes #348 , closes #74 .
10 years ago
Steven Kirk
0faeaf47e3
Scroll newly selected tree view node into view.
10 years ago
Ivan Kochurkin
93e1f0d388
Removed PointPair.
10 years ago
Ivan Kochurkin
5c969c40b8
Implemented Polygon, Polyline, PolylineGeometry.
Added unit-tests with data and demo code in TestApplication.
10 years ago
Ivan Kochurkin
e07d085ef5
Fixed Line rendering (PointPair instead of Rect) and added unit-tests.
10 years ago
Steven Kirk
69d98efeeb
Highlight hovered control in devtools.
10 years ago
Michael Mayfield
3ed14edf12
Fix Grid sizing being broken when using Grid.ColumnSpan.
Caused by CreateMatrices not clearing the existing matrices. This means previous measures alter the results of a measure.
10 years ago
Steven Kirk
c052d389a9
Fix ScrollViewer.
Make various properties Direct properties, which gives them the correct
binding behavior.
10 years ago
Steven Kirk
6cf9a43582
Set IsSelected on newly materialized TreeViewItems.
10 years ago
Steven Kirk
b1b5dd5ba2
Make Popup.IsOpen a direct property.
This fixes Menu and DropDown.
10 years ago
Steven Kirk
ff9a622cd1
TreeViewItem may not be created when SelectedIndex set.
10 years ago
Steven Kirk
bfb334ca5e
Ensure TreeViewItem.IsSelected is set.
When TreeView.SelectedItem changes.
10 years ago
Steven Kirk
444ca577ca
Moved Bind method to IPerspexObject.
Allow IPerspexObject to be bound to an IBinding.
10 years ago
Steven Kirk
bf30371721
Removed ITreeDataTemplate.IsExpanded.
10 years ago
Steven Kirk
3e6402711c
Make TreeViewItem.IsExpanded bindings work.
10 years ago
Steven Kirk
5773704f2d
Started updating DevTools to use XAML.
10 years ago
Ivan Kochurkin
b6c66c67e0
Added Line and LineGeometry for line drawing.
10 years ago
Steven Kirk
1841e7ad7a
Start allowing Setters to contain bindings.
This is needed so that things like the following can be done:
<TreeView>
<TreeView.Styles>
<Style Selector="TreeViewItem">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"/>
</Style>
</TreeView.Styles>
<TreeView>
(At the moment we have TreeDataTemplate.IsExpanded but this isn't good
enough: it only supports setting IsExpanded on creation of the item with
no binding.)
With this commit, setters can now contain bindings, but they aren't yet
applied correctly. As part of this commit, classes related to binding
have been moved to the Perspex.Data namespace.
10 years ago
Steven Kirk
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
10 years ago
Steven Kirk
adee104ad9
DropDown shouldn't be an IContentControl.
10 years ago
Steven Kirk
d9eee9fa4a
Make SelectionBoxItem a direct property.
10 years ago
Steven Kirk
7adc902b99
Handle null content in TabControl.
11 years ago
Steven Kirk
d9f043b45d
Don't allow null logical or visual children.
And remove RedirectLogicalChildren which is no longer needed, or
desired.
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
938e07422a
Invalidate TextBlock.FormattedText when attached to logical tree.
As inherited properties can change when this happens.
11 years ago
Steven Kirk
0aa035e581
Make sure AttachedToLogicalTree is only raised once.
And add a check to make sure control is attached to logical tree before
detach - I *think* this should always be the case, though there may be
an edge case which triggers this exception, in which case do the same
for DetachedFromLogicalTree as we've done for AttachedToLogicalTree
here.
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
Steven Kirk
3b5d338ea5
Added DropDownItem.
So that drop down items can be highlighted as they're hovered.
11 years ago
Steven Kirk
b5c9bc7266
Ensure items made visible when no transition set.
11 years ago
Steven Kirk
fd36871332
Make carousel page transition changable in catalog.
11 years ago
Steven Kirk
c49201b8cb
Added SelectingItemsControl.SelectionChanged event.
11 years ago
Steven Kirk
f0a8f45362
Removed hack from MenuItem.
ItemsPresenterHost now makes ItemsControls within popups a supported
scenario by default.
11 years ago
Steven Kirk
4845dfd0fa
Added IContentPresenterHost.
Similarly to how we now have IItemsPresenterHost.
11 years ago
Steven Kirk
59032dcff8
Make DropDown in ControlCatalog display correctly.
11 years ago
Steven Kirk
c4ceebcfb3
Ensure Presenter template is applied...
...before updating ContentControl's logical children, as otherwise the
Presenter.Child may be null as UpdateChild has not yet been called.
11 years ago