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
10 years ago
Steven Kirk
23cc9a2ff4
Allow binding to element without path.
Closes #365 .
10 years ago
Steven Kirk
5d2658d856
Make IStyleable.Classes an IPerspexReadOnlyList.
So we can mock it.
10 years ago
Steven Kirk
8fb9c5c8e7
Fixed problem with binding DataContext.
Bindings such as <Foo DataContext="{Binding Bar}"/> were not working.
10 years ago
Steven Kirk
b9992c582c
Added binding ConverterParameter.
Closes #317 .
10 years ago
Steven Kirk
1044154279
Bind to other controls with #control syntax.
Rather than specifying ElementName separately, allow binding using a "#control.Property" property path.
11 years ago
Steven Kirk
7865743819
Added ElementName bindings.
11 years ago
Steven Kirk
d1acf43253
Started fixing up MultiBinding.
11 years ago
Steven Kirk
2f61edcc5f
Added ":is(Type)" selector support.
11 years ago
Steven Kirk
e301e56a9d
Start making Converters work.
When passed to Binding. Found another problem with OmniXAML which means
we can't continue along this road: OmniXAML issue #50 .
11 years ago
Steven Kirk
b230c3b3f3
Renamed XamlBinding -> Binding
Had to also rename enclosing namespace from Binding to Data as classes
with same name as a namespace cause problems.
11 years ago
Steven Kirk
52b6c0feac
Fixed TemplatedParent binding.
Was doing stupid stuff before.
11 years ago
Steven Kirk
785238bdf1
Merged XamlBinding and XamlTemplateBinding.
11 years ago
Steven Kirk
526ce1e0cc
Get the PerspexProperty type from the Style.
11 years ago
Steven Kirk
d2cc993a3e
Fixed DataContext binding problem.
Described by XamlBindingTest.Should_Not_Write_To_Old_DataContext.
Problem still remains with ListBox.SelectedItems however, that's going
to require something more.
11 years ago
Steven Kirk
98e3d4ba32
Added file missed from last commit.
11 years ago
Steven Kirk
3945d9d075
Make DataTemplate match derived types.
Closes #251 .
11 years ago
Steven Kirk
843eb65dea
Bind DataContext to Parent.DataContext.
Need to special-case binding to DataContext as previously it was trying
to bind to itself. When binding to DataContext, we're binding to the
*parent* DataContext.
11 years ago
Steven Kirk
9d88f91852
Determine binding target at time of bind.
This is needed in order to be able to use bindings as selectors, e.g.
for TreeDataTemplate.ItemsSelector.
11 years ago
Steven Kirk
1064fbd186
Implement OneTime binding.
11 years ago
Steven Kirk
4f09de4dfe
Started adding XamlBinding unit tests.
11 years ago
Steven Kirk
d100f49ba8
Renamed namespace DataBinding -> Binding.
11 years ago
Steven Kirk
907505f194
Get simple two-way bindings working.
11 years ago
Steven Kirk
52975c8432
Basic binding using ExpressionObserver.
11 years ago
Steven Kirk
3cb479769d
Use string XamlBindingDefinition.SourcePropertyPath.
11 years ago
Steven Kirk
d3e7a1b730
Don't run XAML tests in parallel.
11 years ago
Steven Kirk
1b745ab62c
Removed NGenerics.
Closes #7 .
11 years ago
Steven Kirk
78da7c6b3d
Use correct character for child selector.
11 years ago
Steven Kirk
cc1c2c0313
Fixes #147 .
11 years ago