Jeremy Koritzinsky
da5fd06fcd
Moved validation filtering into ExpressionObserver and out of InstancedBinding, PerspexObject, and the Priority* system. Renamed some methods in this system to be more descriptive.
10 years ago
Jeremy Koritzinsky
774c6e6fa4
Made validation enable-able during binding construction, similar to WPF. Now validation events are only raised when the validation type is enabled on the property.
10 years ago
Steven Kirk
f6853de65c
Managed to make test fail.
10 years ago
Steven Kirk
37273c2bce
Forgot to save csproj.
Again.
10 years ago
Steven Kirk
c9df1415bb
Tried to reproduce #499 .
But can't...
10 years ago
Steven Kirk
3865198be4
Use Logger.Error instead of .Log.
10 years ago
Steven Kirk
1c3b1672b8
Added failing test.
StyleResources cannot currently be found in other style resources
because the style resource binding is evaluated before the style is
attached to the parent. Described in #492 .
10 years ago
Jeremy Koritzinsky
44b1b4d9cd
Moved Application and Design into Perspex.Controls. Moved designer support classes into new Perspex.DesignerSupport assembly.
10 years ago
Steven Kirk
fa9e7fbcd8
Don't use observables to detach styles.
Rather than adding a TakeUntil(control.StyleDetach) to each applied
style, keep track of the applied styles in a static list. This
dramatically reduces memory usage.
10 years ago
Steven Kirk
21f4570559
Allow binding to anchor's DataContext.
Fixes #461 .
10 years ago
Steven Kirk
5d53ec9822
Fix binding to Window.
10 years ago
Steven Kirk
080638e079
Ensure DataTemplate contents can be named.
10 years ago
Steven Kirk
8209a85193
Make IBinding return an InstancedBinding.
Instead of an ISubject<object> as this was wasteful when a OneTime or
OneWay binding was required.
10 years ago
Steven Kirk
a9f5fac632
Added failing test.
10 years ago
Steven Kirk
b4fbc1d50e
Make failing test pass.
10 years ago
Steven Kirk
80ecc8002b
Implemented delayed bindings.
10 years ago
Steven Kirk
bacab96ec1
Added test to demonstrate problem.
10 years ago
Steven Kirk
8ca890d168
Started implementing XAML lifecycle listener.
We need to delay bindings until everything is set up before everything
works though.
10 years ago
Steven Kirk
f7cd106937
Updated OmniXAML and added checks for initialization order.
OmniXAML issue #84 is now fixed. Added tests to confirm this and to check that setting the Name property now fails because of this fix.
The fix for Name will come next.
10 years ago
Steven Kirk
fd1196f190
Forgot to save .csproj. Again.
10 years ago
Steven Kirk
0df95a81ae
Added new style resource test.
To get style resources working, OmniXaml #84 really needs to be set, so
style resource tests failing for the moment.
10 years ago
Steven Kirk
b3fe8121d1
Implement binding elements to non-controls.
10 years ago
Steven Kirk
102af14c4c
Tidied up XAML tests.
Moved actual XAML loading tests into Xaml directory, removed unused
classes.
10 years ago
Steven Kirk
2234c6dba4
Updated OmniXAML.
10 years ago
Steven Kirk
624a7cf962
Trying to fix intermittent test failure.
10 years ago
Steven Kirk
f62f32c83c
Allow {StyleResource} in setter.
10 years ago
Steven Kirk
d1cbc3fa22
Added failing test.
10 years ago
Steven Kirk
19af37a6af
Started adding StyleResource markup extension.
OmniXAML issue #84 is now blocking us.
10 years ago
Steven Kirk
6b06d0ee4c
Started adding Style resources.
Added Style.Resources and confirmed that Color can be added to the
resources. However, SolidColorBrush doesn't work - needs a fix from
OmniXAML.
10 years ago
Steven Kirk
a03dad9bab
Removed a bunch of unused members/classes.
10 years ago
Steven Kirk
a2b9309bf2
Reinstalled Moq.
Something was wrong with it.
10 years ago
Steven Kirk
2df9a0d9f4
Forgot to save .csprojs.
10 years ago
Steven Kirk
eec9a1f44a
Added shared TestRoot class.
And use it in every unit test project except SceneGraph as that one is
different.
10 years ago
Steven Kirk
9a0df79ec5
Use UnitTestApplication in some more places.
Also removed service registration from some tests that now don't require
it.
10 years ago
Steven Kirk
e096c849d9
Updated NuGet packages.
Closes #395 .
10 years ago
Steven Kirk
9ecd558af1
Added FallbackValue to MultiBinding.
Closes #411 .
10 years ago
Steven Kirk
3fde7f979c
Added VisualExtensions.PointToClient.
In addition moved PointToScreen to VisualExtensions, and renamed
IRenderRoot.TranslatePointToScreen to IRenderRoot.PointToScreen.
10 years ago
Steven Kirk
079a6adb4e
Fix tests.
10 years ago
Steven Kirk
ffbd694bf7
Implemented Binding.FallbackValue.
Closes #238 .
10 years ago
Steven Kirk
f5d5d2aebe
Add support for Source in binding.
Closes #318 .
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
3e6402711c
Make TreeViewItem.IsExpanded bindings work.
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
a6b74db847
Merge branch 'logical-tree' into leaks
11 years ago
Steven Kirk
23cc9a2ff4
Allow binding to element without path.
Closes #365 .
11 years ago
Steven Kirk
5d2658d856
Make IStyleable.Classes an IPerspexReadOnlyList.
So we can mock it.
11 years ago
Steven Kirk
8fb9c5c8e7
Fixed problem with binding DataContext.
Bindings such as <Foo DataContext="{Binding Bar}"/> were not working.
11 years ago
Steven Kirk
b9992c582c
Added binding ConverterParameter.
Closes #317 .
11 years ago