Steven Kirk
24acd4cd24
Allow binding to CLR properties on AvaloniaObject.
`AvaloniaPropertyAccessorPlugin` now checks that the requested property is available as a `AvaloniaProperty` on the target, and if not returns a `false` match. This means that the binding will be passed on to the `InpcPropertyAccessorPlugin`.
There was a problem in `WeakSubscriptionManager` in that an `AvaloniaObject` exposes 2 `PropertyChanged` events and `WeakSubscriptionManager` was picking up the `AvaloniaObject` one. Had to make `WeakSubscriptionManager.Subscribe` generic on the target parameter so that the requested event (`INotifyPropertyChanged.PropertyChanged`) was found instead.
9 years ago
Steven Kirk
7c13974285
Added failing test for #546 .
9 years ago
danwalmsley
8bf9b58e48
Merge pull request #1032 from AvaloniaUI/fixes/787-contentpresenter-updatechild
Refactored ContentPresenter
9 years ago
danwalmsley
4ec230b0b1
Merge branch 'master' into fixes/787-contentpresenter-updatechild
9 years ago
Nikita Tsukanov
85f2930557
[GTK3] More changes to workaround SafeHandle not being allowed to be null
9 years ago
Nikita Tsukanov
6ea0635c7f
[GTK3] Workaround for SafeHandle not allowed to be null
9 years ago
Nikita Tsukanov
8508dd5a58
Merge pull request #1042 from mterwoord/patch-2
Update from-wpf.md
9 years ago
Matthijs ter Woord
bf2a363ef6
Update from-wpf.md
Small typo in sample.
9 years ago
Steven Kirk
ceca72193f
Merge branch 'master' into fixes/787-contentpresenter-updatechild
9 years ago
Steven Kirk
2f301b2bcd
Merge pull request #1031 from AvaloniaUI/fixes/1029-fix-tooltip-crash
Fix exception in ToolTip.
9 years ago
Steven Kirk
30ce00b2e2
Merge remote-tracking branch 'origin/master' into fixes/787-contentpresenter-updatechild
9 years ago
Steven Kirk
94322e2c27
Merge branch 'master' into fixes/1029-fix-tooltip-crash
9 years ago
Steven Kirk
23f39b8f45
Merge pull request #1038 from AvaloniaUI/fixes/1035-reenable-skipped-tests
Fix intermittently failing Avalonia.Markup.UnitTests
9 years ago
Steven Kirk
d3dac57297
Merge branch 'fixes/1035-reenable-skipped-tests' into fixes/787-contentpresenter-updatechild
9 years ago
Steven Kirk
48f0c05522
Fix BindingNotification.ClearValue.
It should have been setting it to `UnsetValue` not null. This allows two skipped tests to pass.
9 years ago
Steven Kirk
641b796dc8
Merge branch 'fixes/1035-reenable-skipped-tests' into fixes/787-contentpresenter-updatechild
9 years ago
Steven Kirk
59e68a2cad
Merge branch 'fixes/787-contentpresenter-updatechild' of https://github.com/AvaloniaUI/Avalonia into fixes/787-contentpresenter-updatechild
9 years ago
Steven Kirk
ee40eee9e9
Merge branch 'fixes/1035-reenable-skipped-tests' into fixes/1029-fix-tooltip-crash
9 years ago
Steven Kirk
129378cad1
Added more GC.KeepAlive statements.
9 years ago
Steven Kirk
ef1039b865
Unskip another test.
9 years ago
Steven Kirk
3b3fbdbbd6
Use `DisableTestParallelization`
Instead of `MaxParallelThreads = 1` - that's how we do it in other assemblies.
9 years ago
Steven Kirk
7baa7dc0dd
Added GC.KeepAlive to tests.
Lots of `Avalonia.Markup.UnitTests` were failing intermittently. This is because in release mode, in a method like this:
```
[Fact]
public void SetValue_Should_Return_False_For_Missing_Object()
{
var data = new Class1();
var target = new ExpressionObserver(data, "Next.Bar");
using (target.Subscribe(_ => { }))
{
Assert.False(target.SetValue("baz"));
}
}
```
`data` can get GC'ed at any point after creating target. Added `GC.KeepAlive()` calls to prevent this.
Fixes #1035
Fixes #1036
Fixes #1037
9 years ago
Steven Kirk
78bb593f97
Use CurrentCulture instead of CurrentUICulture.
Use `CurrentCulture` instead of `CurrentUICulture` in converters etc. `CurrentUICulture` should be used for translations, `CurrentCulture` should be used for things like numbers, dates etc.
9 years ago
Steven Kirk
11586a4d4c
Don't have async void tests.
That's bad. Also un-skip binding expression tests.
9 years ago
Steven Kirk
a579dcc1f7
Merge branch 'master' into fixes/1029-fix-tooltip-crash
9 years ago
Steven Kirk
8df47eda2d
Merge pull request #1011 from AvaloniaUI/fixes/938-button-press-release
Only click when pointer is over the button.
9 years ago
Steven Kirk
9c22b1f10a
Merge branch 'master' into fixes/787-contentpresenter-updatechild
9 years ago
Steven Kirk
bb51776b36
Merge branch 'master' into fixes/938-button-press-release
9 years ago
Steven Kirk
a75dfb63a1
Merge branch 'master' into fixes/1029-fix-tooltip-crash
9 years ago
Steven Kirk
fc1308ef98
Merge pull request #1034 from AvaloniaUI/fixes/1033-dont-use-weakreference-in-bindingnotification
Don't use WeakReference in BindingNotification.
9 years ago
Steven Kirk
f59e080936
Merge branch 'master' into fixes/1033-dont-use-weakreference-in-bindingnotification
9 years ago
Steven Kirk
488d6e908f
Merge pull request #1019 from wieslawsoltes/FixInvariantCultureFixture
Fix invariant culture fixture
9 years ago
Steven Kirk
bcc3ca13ae
Don't use WeakReference in BindingNotification.
It's a bad idea - if you put say a `3` into a `BindingNotification`, that `int` will get boxed and then put into a `WeakReference`, which means that the `3` can get GC'd. That's not a desireable behavior!
9 years ago
Steven Kirk
b2a6890167
Merge branch 'master' into FixInvariantCultureFixture
9 years ago
Steven Kirk
af50118162
Added missing method.
Why didn't you notice that before, VS?
9 years ago
Steven Kirk
a232b137b5
Allow reuse of existing tooltip popup.
To do this, had to fix a problem where templated children weren't notified of being re-attached to a logical tree.
9 years ago
Steven Kirk
0d492ca16a
Update ContentPresenter when ContentTemplate changed.
9 years ago
Jeremy Koritzinsky
53a4944123
Merge branch 'master' into fixes/938-button-press-release
9 years ago
Steven Kirk
1150af791c
Reworked how ContentPresenter child is updated.
Update immediately when attached to a logical tree. Also separate tests for different scenarios.
9 years ago
Steven Kirk
82483d7dec
Fix exception in ToolTip.
Make sure old `ToolTip` is disposed before showing a new one.
9 years ago
Steven Kirk
cfcdeff547
Merge pull request #1021 from AvaloniaUI/fixup-layout-manager
Fix up the Layout Manager
9 years ago
Steven Kirk
ac4147ae7c
Merge branch 'master' into fixup-layout-manager
9 years ago
Nikita Tsukanov
ad76a075f9
Use Cake 0.18.0
9 years ago
Steven Kirk
40c342989b
Assert control invalidation behavior.
Controls not attached to the visual tree should not notify the `LayoutManager` that they have had their layout invalidated. Similarly when added to the visual tree their parents and themselves should have their layout invalidated.
9 years ago
Nikita Tsukanov
60e7aa3647
Merge pull request #1022 from ForNeVeR/feature/windows-interop-skiasharp
Add SkiaSharp dependency to WindowsInteropTest
9 years ago
Friedrich von Never
cd8ddf31a6
WindowsInteropTest: add SkiaSharp dependency
9 years ago
Steven Kirk
18f9e2840d
Explain the algoithm a bit.
9 years ago
Steven Kirk
a1d46a7784
Use a stack instead of HashSet.
Controls that are already invalid will not invalidate themselves again to with the `LayoutManager`, so we don't need to worry about duplicates.
9 years ago
Steven Kirk
f97ebe961b
Fixed some stupid mistakes in algorithm.
9 years ago
Steven Kirk
9da4e5b112
Merge branch 'benchmarks' into fixup-layout-manager
9 years ago