Kermalis
2ee5a21dd7
Remove broken test for now
An issue will be made after merging because it's unrelated
7 years ago
Dan Walmsley
17c4c10404
fix unit test for window center location.
7 years ago
Dan Walmsley
2282c99c16
add dpi information to screens api.
7 years ago
Kermalis
9cc2d777ad
Update WrapPanelTests.cs
7 years ago
Kermalis
1cf93ad393
Add ItemWidth and ItemHeight properties to WrapPanel (with unit tests)
7 years ago
Steven Kirk
db8751d711
Handle reparenting controls in SceneBuilder.
Renamed `VisualNode.SortChildren` -> `UpdateChildren` and make it remove nodes for controls that are no longer children.
7 years ago
Steven Kirk
249e9940da
Added failing tests for #2982 .
Crash in renderer when reparenting a control.
7 years ago
Dariusz Komosinski
06a4a1af5b
Add failing unit test.
7 years ago
Dariusz Komosiński
d409090b90
Fix unit tests. Remove default ctor.
7 years ago
Dariusz Komosiński
2362b5a847
Cleanup KeyGesture code. Add constructor taking non-deprecated arguments.
7 years ago
Steven Kirk
15e388da75
Adding failing binding tests.
- `OneTime` bindings are failing to release their subscription if the `DataContext` is unset when the binding is made.
- Combining `OneTime` and `OneWayToSource` bindings are causing an NRE. The NRE is being caught but it too results in a subscription being leaked.
7 years ago
Steven Kirk
661254c9cf
Add issue number to test.
7 years ago
Dariusz Komosiński
9acf82d47b
!B Fix expression nodes not knowing if last value is actually null or dead.
7 years ago
Steven Kirk
49f54b5275
Added failing test for #2912 .
7 years ago
Dan Walmsley
b80aa21610
add a unit test for stackpanel layout issue.
7 years ago
Steven Kirk
33cf418779
Added failing test for #2969 .
7 years ago
Steven Kirk
6f44dfac5b
Added unit test for #2952 .
7 years ago
Steven Kirk
0eb7b2d25e
Enable adding event handlers to Gestures events.
Added the `Add*Handler` and `Remove*Handler` events required by XAML in order to use attached event syntax. Added unit test to ensure this works.
7 years ago
Jumar Macato
9970bf6722
Address review pt. 2
7 years ago
Jumar Macato
d368d9675a
Address review.
7 years ago
Jumar Macato
3549f00fcb
Revert unit test changes.
7 years ago
Steven Kirk
d7357ec876
Remove ContentControlMixin.
And implement the functionality in the content controls themselves. `ContentControlMixin` was too complex and even with its complexity had bugs (such as in #2821 ). By moving the functionality to the content controls there is some repeated code but it's much more straightforward.
7 years ago
Steven Kirk
5c407f966c
Added failing test for #2821 .
`ContentPresenter` doesn't set the logical parent of its child control after it has been removed from the logical tree and re-added.
7 years ago
Steven Kirk
bd354143ca
Notify MouseDevice when TopLevel closed.
So it can remove pointerover state.
7 years ago
Steven Kirk
8ebe1c1288
Added failing test for #2901 .
After the selected item is removed from a `ListBox` with `AlwaysSelected == true`, the container for the newly selected item does not get `:selected` applied.
7 years ago
Dariusz Komosinski
addc1ddce2
Avoid initializing properties if there is no observer. Optimize access.
7 years ago
Jumar Macato
d176b1d7dc
Fix unit tests.
7 years ago
Nikita Tsukanov
766a4d69c8
Fixed escaped attribute values (e. g. StringFormat="\{0\}!")
7 years ago
Nikita Tsukanov
af4c1f06ad
Extra tests for markup extensions
7 years ago
Ben Carman
0486de87a6
MaxLength Property for TextBox
7 years ago
Dariusz Komosinski
5afc0f5395
Unify AddRange and InsertRange. Fix ranged versions causing multiple enumerations. Get rid of unnecessary allocations (notifications, enumerators).
7 years ago
all.owing
6dbe617ed6
One more tests fix
7 years ago
all.owing
a6b65a39de
Test fix
7 years ago
José Pedro
f3dfddc112
Fixed Binding.DoNothing for MultiBinding.
7 years ago
JaggerJo
b475acab1e
- add tests
- add instance methods for normalize & negate
- make length squared simpler
7 years ago
Steven Kirk
947598fcec
More tests forContentPresenter and InheritanceParent.
Make sure the inheritance parent is reset for non-rooted and standalone `ContentPresenter`s.
7 years ago
Steven Kirk
939d80788b
Added failing test for #2823 .
7 years ago
Dariusz Komosinski
868b5ea840
Update WeakReference usages to use the generic one.
7 years ago
Dariusz Komosinski
5f1a003e4f
Add failing unit test for TwoWay binding issue.
7 years ago
Nikita Tsukanov
0bad390dac
Added PointerUpdateKind and replaced InputModifiers with KeyModifiers
7 years ago
Nikita Tsukanov
3d4a2781b0
Switched key events to use KeyModifiers
7 years ago
Nikita Tsukanov
07ed194c9d
Review comments
7 years ago
artyom
32aea583b1
Don't throw when in design mode
7 years ago
Steven Kirk
b4d7d03afd
Constrain to availableSize in MeasureCore.
#2431 erroneously removed the `.Constrain(availableSize)` call in `Layoutable.Measure`. Now that the WPF source is available, I can see i that WPF does in fact constrain measure to availableSize and Grid relies on this.
Put constraint back in, undo the changes to the controls changed in #2431 (`StackPanel`, `Image`) and update the expected test results based on cross-checks with WPF in https://github.com/wieslawsoltes/WpfUnitTests/pull/1 .
7 years ago
Steven Kirk
51ec592e4a
Added failing test for #2746 .
7 years ago
Steven Kirk
a6c9086782
Fix flaky XAML tests.
Make tests that load XAML inherit from `XamlTestBase` which ensures that `Avalonia.Markup` is loaded.
7 years ago
Steven Kirk
cdb486fe23
Fix NRE in VisualNode.SortChildren.
`_children` may be null. In addition if there are < 2 children, there's no sorting to be done.
7 years ago
Steven Kirk
c65b5de959
Move setting popup TemplatedParent...
...out of `PopupRoot` and into `Popup`. Fixes styling problems in `Popups` hosted in control templates.
7 years ago
Steven Kirk
6caa06f52b
Remove PopupContentHost.
It's no longer needed now the bug fix in 669c6511d6 is in place.
7 years ago
Steven Kirk
669c6511d6
Reset inheritance parent in ContentPresenter.
Previously a dangling reference to `ContentPresenter` was left in place in the ex-child control's `InheritanceParent`. When the child is removed from the `ContentPresenter`, reset the value to the control's logical parent.
7 years ago