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
5957d33d75
Merge branch 'binding-refactor'
10 years ago
Steven Kirk
e08b9e3e4b
Removed PerspexObject.BindTwoWay.
Instead use subjects and Bind.
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
ce997f6965
Refactor ActivatedSubject
Inherit from ActivatedObject.
10 years ago
Steven Kirk
36f2f3e1e0
More work on allowing bindings in setters.
Support activated ISubjects.
10 years ago
Nikita Tsukanov
a6c59ca35e
Merge pull request #393 from KvanTTT/master
Added Line and LineGeometry for line drawing.
10 years ago
Ivan Kochurkin
2cfa6f842e
Fixed @kekekeks notes.
Fixed test name (Line instead of Circle).
10 years ago
Steven Kirk
e24770c053
Use correct match logic in TreeDataTemplate.
Use same as DataTemplate.
10 years ago
Ivan Kochurkin
b6c66c67e0
Added Line and LineGeometry for line drawing.
10 years ago
Steven Kirk
5e0dd8fcd3
Support Setters with Bindings.
However Styles with activators (e.g. "Foo.class") not yet supported.
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
36543720ed
Added IPerspexObject.GetSubject extension method.
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
04b07b774b
Allow null DataTemplate.DataType.
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
14507beb41
Log invalid binding values in PriorityValue.
10 years ago
Steven Kirk
67d13258fd
Merge pull request #390 from wieslawsoltes/DropDownItemSelectedBackground
Make selected DropDownItem background same as ListBoxItem's
10 years ago
Wiesław Šoltés
74b67bd6f5
Make selected DropDownItem background same as ListBoxItem's
10 years ago
Steven Kirk
7adc902b99
Handle null content in TabControl.
10 years ago
Steven Kirk
d9f043b45d
Don't allow null logical or visual children.
And remove RedirectLogicalChildren which is no longer needed, or
desired.
10 years ago
Steven Kirk
1f96e59985
Added DropDown to control catalog.
Seems that second DropDown in the page doesn't get SelectedIndex set
correctly: doesn't matter which DropDown, the first works, the second
doesn't.
10 years ago
Steven Kirk
1f7034c152
Undo visual offset in VisualBrush.
If the Visual to be drawn is offset from its parent, we don't want that
in the rendered visual.
10 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.
10 years ago
Steven Kirk
880a97471c
Fix potential NRE.
10 years ago
Steven Kirk
f37c4a9059
Only close Popup when click is outside PopupRoot.
10 years ago
Steven Kirk
938e07422a
Invalidate TextBlock.FormattedText when attached to logical tree.
As inherited properties can change when this happens.
10 years ago
Steven Kirk
e1c578c7ec
Clear the intermediate render target.
This prevents the glitching we've been seeing in DropDown with a control
item. For some reason doing a FillRectange on it didn't work. Closes
#108 .
10 years ago
Steven Kirk
69cf02690d
Correctly report inherited values in diagnostics.
If an inherited value has a binding but that binding is returning unset
then return the inherited value.
10 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.
10 years ago
Steven Kirk
2b09f5f6d1
Fix DropDown dropping down.
Make clicking on an open DropDown close it, and wire up the ToggleButon.
10 years ago
Steven Kirk
3b5d338ea5
Added DropDownItem.
So that drop down items can be highlighted as they're hovered.
10 years ago
Steven Kirk
b5c9bc7266
Ensure items made visible when no transition set.
10 years ago
Steven Kirk
fd36871332
Make carousel page transition changable in catalog.
10 years ago
Steven Kirk
c49201b8cb
Added SelectingItemsControl.SelectionChanged event.
10 years ago
Steven Kirk
ee81fb66d5
Merge pull request #383 from wieslawsoltes/FixIssue382
Fix for issue #382
10 years ago
Steven Kirk
0419694e91
Merge branch 'amerkoleci-sharpdx_3.0.0'
10 years ago
Steven Kirk
e1e09387ba
Merge branch 'sharpdx_3.0.0' of https://github.com/amerkoleci/Perspex into amerkoleci-sharpdx_3.0.0
10 years ago
Steven Kirk
f0a8f45362
Removed hack from MenuItem.
ItemsPresenterHost now makes ItemsControls within popups a supported
scenario by default.
10 years ago
Steven Kirk
4845dfd0fa
Added IContentPresenterHost.
Similarly to how we now have IItemsPresenterHost.
10 years ago
Amer Koleci
e2ab8171b3
Update to SharpDX 3.0.0 official release.
10 years ago
Wiesław Šoltés
9b4ddce3b5
Fixed failing tests
10 years ago
Wiesław Šoltés
490d19f5ca
Fixes issue #382
10 years ago
Steven Kirk
59032dcff8
Make DropDown in ControlCatalog display correctly.
10 years ago
Steven Kirk
e85178e0c5
Unwrap TargetInvocationExceptions.
Calling Delegate.DynamicInvoke wraps any exception - we want to expose
the actual exception to callers.
10 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.
10 years ago
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.
10 years ago