Steven Kirk
3f6e982be8
Added SelectionModel.RetainSelectionOnReset.
7 years ago
Steven Kirk
3a7d9f0800
Use SelectedItems for change event args.
7 years ago
Steven Kirk
307b751f68
Lazily create the selected/deselected lists.
7 years ago
Steven Kirk
ea968c49c2
Refactor of SelectionModel change notifications.
To address issues found.
7 years ago
Steven Kirk
2336f85d02
Added some failing tests.
That demonstrate some problems with the `SelectionModel` change notifications found so far.
7 years ago
Steven Kirk
8879477322
Added SelectionModel changed args.
`SelectionModel` as ported from WinUI has no information about what changed in a `SelectionChanged` event. This adds that information along with unit tests.
7 years ago
Steven Kirk
8640393a26
Add `IndexRange` list add/remove methods.
Add or remove index ranges from a list of index ranges, merging and splitting ranges as required.
7 years ago
Steven Kirk
d615cdebcb
Add nullability annotations to SelectionModel etc.
And ran a few of VS' lightbulb suggestions.
7 years ago
Steven Kirk
e4c6c85826
Refactor IndexPath.
- #nullable enable
- Make it a `readonly struct`
- Most of the time it will only hold a single `int`, so optimize for the common case by having an `int _index` field
- Make `_path` an array rather than a list as it will be fixed-size
- Implement equality
- Implement operators
7 years ago
Steven Kirk
6bd7b4f335
Ported SelectionModel and friends from WinUI.
7 years ago
Steven Kirk
640a5c5d8b
Swap order of parameters to event args.
As described in #3437 the argument ordering was different to WPF/UWP causing bugs in some code ported from WPF/UWP. Use the same argument ordering as WPF/UWP.
Fixes #3437
7 years ago
Steven Kirk
39841211d7
Merge pull request #3465 from MarchingCube/fix-color-comparisons
Optimize Color equality checks
7 years ago
Dariusz Komosinski
cf8aa6ecac
Optimize Color equality checks.
7 years ago
Steven Kirk
6c40771d94
Merge pull request #3255 from AvaloniaUI/refactor/value-store
Make styled property storage typed
7 years ago
Steven Kirk
527bac1ab3
Merge branch 'master' into refactor/value-store
7 years ago
Steven Kirk
399417692f
Revert "Removed unused owner reference."
This reverts commit d0e2a844db .
7 years ago
Steven Kirk
3bc1594dca
Revert "Removed unused field."
This reverts commit 270f9718b8 .
7 years ago
Steven Kirk
ab26c550e9
Merge pull request #3287 from AvaloniaUI/refactor/wpf-validation-coercion
Switch to WPF-styled property validation/coercion
7 years ago
Steven Kirk
89ba4a6327
Prevent tests interfering with other tests.
7 years ago
Steven Kirk
7f26635efa
Wire up validation/coercion for attached properties.
7 years ago
Steven Kirk
c6acca57c4
Fix method name after merge.
7 years ago
Steven Kirk
e3aa3bc3ef
Merge pull request #3342 from AvaloniaUI/fixes/3328-move-treeview
Fix DetachedFromLogicalTree event args parent, and allow TreeViews to be reparented
7 years ago
Jumar Macato
65e4470fd2
Merge branch 'master' into fixes/3328-move-treeview
7 years ago
Dariusz Komosiński
d69e815a84
Merge pull request #3403 from jp2masa/update-obsolete-api-usages
Fixed drag and drop obsolete API usage
7 years ago
Dariusz Komosiński
3dca33010c
Merge branch 'master' into update-obsolete-api-usages
7 years ago
danwalmsley
8a3f592083
Merge pull request #3453 from AvaloniaUI/fixes/x11-backend-cope-with-0size-window
Fixes/x11 backend cope with 0size window
7 years ago
Jumar Macato
7e42523008
Additional sanity checks for monitor resolution
7 years ago
Dan Walmsley
32df775398
Add hack to prevent renderer crashing on 0x0 window x11.
7 years ago
Dan Walmsley
1f1d3a8e35
prevent crashing in finalizer
7 years ago
Dan Walmsley
9fc7842eef
Revert "X11 backend wont crash with 0 sized window."
This reverts commit d49109877c .
7 years ago
Dan Walmsley
d49109877c
X11 backend wont crash with 0 sized window.
7 years ago
danwalmsley
fdfd5be1b1
Merge pull request #3451 from AvaloniaUI/feature/implement-avalonia-native-exception-dispatch
Implement ExceptionDispatch for OSX
7 years ago
Dan Walmsley
f56a891a0f
prevent possibility of double cancellation of main loop.
7 years ago
Dan Walmsley
9df55b02d4
Use loopcancellation instead of adding a seperate api.
7 years ago
Steven Kirk
9ec8a2f130
Merge branch 'master' into refactor/value-store
7 years ago
Steven Kirk
69e702320b
Added some documentation to value stores.
7 years ago
Steven Kirk
4cc378ea0f
Property store can be typed on IValue.
7 years ago
Steven Kirk
a1353c7715
Remove unused method.
7 years ago
Steven Kirk
6f92e3786a
Fix typo.
7 years ago
Steven Kirk
3a80cee3fc
Add nullability annotations.
7 years ago
Steven Kirk
c2d5f62390
Avoid boxing if property is correct type.
For typed bindings, we'll have an `AvaloniaPropertyChangedEventArgs<T>` where `T` is the same as the type of the `AvaloniaPropertyObservable`. For non-typed bindings we'll have `object` as `T` so use the non-typed `AvaloniaProperty`.
7 years ago
Steven Kirk
1ff6e35a06
Disable nullable around generic T.
Compiler warns that `_value` is potentially null, but it can be a value or refernce type.
7 years ago
Steven Kirk
270f9718b8
Removed unused field.
7 years ago
Steven Kirk
f7f9e41bf7
Setter not needed.
7 years ago
Steven Kirk
fa81c42c56
BindingValue should be marked [Flags].
7 years ago
Dan Walmsley
c3fb152597
Working exception dispatch
7 years ago
Dan Walmsley
69c0521c5e
Add methods for dispatching exceptions on osx.
7 years ago
Dan Walmsley
c35755857c
basic implementation of exception dispatch on avalonia.native.
7 years ago
Dariusz Komosiński
f88d7ccee6
Merge branch 'master' into update-obsolete-api-usages
7 years ago
Steven Kirk
93b94a52bd
Merge pull request #3315 from MarchingCube/alloc-scene-hittest
Rework deferred renderer scene hit testing
7 years ago