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
Steven Kirk
e24770c053
Use correct match logic in TreeDataTemplate.
Use same as DataTemplate.
10 years ago
Steven Kirk
5e0dd8fcd3
Support Setters with Bindings.
However Styles with activators (e.g. "Foo.class") not yet supported.
11 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.
11 years ago
Steven Kirk
36543720ed
Added IPerspexObject.GetSubject extension method.
11 years ago
Steven Kirk
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
11 years ago
Steven Kirk
04b07b774b
Allow null DataTemplate.DataType.
11 years ago
Steven Kirk
adee104ad9
DropDown shouldn't be an IContentControl.
11 years ago
Steven Kirk
d9eee9fa4a
Make SelectionBoxItem a direct property.
11 years ago
Steven Kirk
14507beb41
Log invalid binding values in PriorityValue.
11 years ago
Wiesław Šoltés
74b67bd6f5
Make selected DropDownItem background same as ListBoxItem's
11 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
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.
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
880a97471c
Fix potential NRE.
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
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 .
11 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.
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
Amer Koleci
e2ab8171b3
Update to SharpDX 3.0.0 official release.
11 years ago
Wiesław Šoltés
9b4ddce3b5
Fixed failing tests
11 years ago
Wiesław Šoltés
490d19f5ca
Fixes issue #382
11 years ago
Steven Kirk
59032dcff8
Make DropDown in ControlCatalog display correctly.
11 years ago
Steven Kirk
e85178e0c5
Unwrap TargetInvocationExceptions.
Calling Delegate.DynamicInvoke wraps any exception - we want to expose
the actual exception to callers.
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
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
c810f95904
Don't ApplyTemplate on nested templated controls...
...during ApplyTemplate. This was so that ItemsControls could their find
ItemsPresenters nested in other templated controls. Instead use
IItemsPresenterHost to make the presenter register itself with its
TemplatedParent.
11 years ago
Steven Kirk
516a701e6b
Fixed ControlCatalog resources.
11 years ago
Steven Kirk
072cb0128e
Fixed failing tests.
11 years ago
Steven Kirk
7925fa8c65
Cache Margin in MeasureCore.
11 years ago
Steven Kirk
4ef9639f3e
Removed LINQ from MeasureOverride.
And removed empty MeasureOverride methods.
11 years ago
Nikita Tsukanov
630be0c6bf
Test app is running again
11 years ago
Steven Kirk
a7089515c5
Fixed culling bug with transforms.
11 years ago
Nikita Tsukanov
81f1bf51a8
Fixed #282
11 years ago
Steven Kirk
ce1ef2fd89
Make Carousel demo buttons work.
11 years ago
Steven Kirk
7ab944c0a5
Make GridSplitter.Orientation non-nullable.
As OmniXAML can't handle it.
11 years ago
Steven Kirk
2e161e5fcb
Fixed up control catalog sidebar.
11 years ago
Steven Kirk
c98254025f
Simplified TabControl style.
11 years ago