Jumar Macato
8f7f4b7267
Add failing test for #3653
6 years ago
Dariusz Komosinski
1624e88ba3
Remove Window.ShowDialog variant that takes IWindowImpl.
6 years ago
Andrey Kunchev
fb1da608f8
add failing tests for point parsing
6 years ago
Andrey Kunchev
df35f61906
add failing tests for parsing points in xaml
6 years ago
Dan Walmsley
756adb5dd5
fix designer tests.
6 years ago
Dan Walmsley
5de93378cf
fix designer tests.
6 years ago
Steven Kirk
df6dc0abb7
Fix window sizing tests.
We need to make sure the window is being measured the correct number of times to know that the measure pass is correct.
6 years ago
Steven Kirk
ec24030bac
Added another failing PopupRoot test.
6 years ago
Steven Kirk
908eef0b0d
Added failing tests for #3796 .
6 years ago
Steven Kirk
c6860ceefa
Bypass ArrangeCore logic in top-level controls.
Top-level controls cannot have a `Bounds` offset, and their `(Min)/(Max)/Width` and `(Min)/(Max)/Height` reflects the client size of the actual window, so don't need to be applied at the layout level.
Fixes #3784
6 years ago
Steven Kirk
af950096cc
Added failing test for #3784 .
Had to refactor the `MockWindowingPlatform` a bit.
6 years ago
Steven Kirk
faec3ae67f
Added NonVirtualizingStackLayout.
Required fixing/implementing a bunch of infrastructure around non-virtualizing layouts.
6 years ago
Steven Kirk
b80c61892e
Added failing test for #3551
Co-Authored-By: Dariusz Komosiński <marchingcube@users.noreply.github.com>
6 years ago
Steven Kirk
a98b22c40c
Pass close event to Popup.Closed.
So that the event can be marked as handled if necessary. Mark the event as handled in `AutoCompleteBox`, `ComboBox` and `DatePicker`, but _not_ `ContextMenu`. Fixes #3760 .
6 years ago
Steven Kirk
252733e41f
Added failing test for #3760 .
6 years ago
Steven Kirk
804d70e448
Add failing test for #2680 .
6 years ago
Deadpikle
3885a69ab1
Add more failing tests for other keys
6 years ago
Deadpikle
d8f74b7e41
Cut now triggers an undo
6 years ago
Deadpikle
99e5625ca6
Add failing test for cut not working with undo/redo
6 years ago
Deadpikle
681911098c
SelectedText = null -> clear text
6 years ago
Steven Kirk
9adbe33577
Added failing test for #2755 .
6 years ago
Steven Kirk
ab67200954
Implement finding common base type.
Had to also change the unit test to use controls that all have the `Background` property in a common base type.
6 years ago
Deadpikle
d7ca28a443
Add failing test for clearing SelectedText
6 years ago
Steven Kirk
bc36330bc0
Added failing ContextMenu test.
Due to NRE introduced in #3745 .
6 years ago
Steven Kirk
c4da0f75b8
Added another failing ContextMenu leak test.
6 years ago
Steven Kirk
323cfdca3a
Make ContextMenu leak tests fail again.
By adding focus/input manager.
6 years ago
Steven Kirk
b0c79e3094
Added failing leak test for #3738 .
6 years ago
Steven Kirk
aa5c1a6ed4
Added ScrollViewer.ScrollChanged event.
The API for `ScrollChangedEventArgs` is different to WPF's here, because:
- Avalonia's `ScrollViewer` exposes `Extent`, `Offset` and `Viewport` as `Size`/`Vector` structs whereas WPF exposes separate `double` values for the X and Y components for each of these
- The current values are not included in the event args: then can easily be read from the `sender`
- UWP doesn't expose these values at all
6 years ago
Steven Kirk
b9313c2dec
Fix large/small scroll in ScrollViewer.
For non-logical scrolling:
- Use 16 for small scroll size (value taken from WPF)
- Use viewport size for large scroll
For logical scrolling, use the `ScrollSize`/`PageScrollSize` defined on `ILogicalScrollable`. Note that this required a small breaking change to `ILogicalScrollable`.
Fixed #3245
6 years ago
Steven Kirk
13f50f83e7
Remove old outdated header.
6 years ago
Steven Kirk
5397efc4f0
Remove some left-over copyright headers.
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Steven Kirk
2bff56023b
Added failing test for #3708 .
6 years ago
Andrey Kunchev
3dc5b8bda1
add failing test for the core reason of the issue #3692
6 years ago
Andrey Kunchev
ec92b90e81
add a test for multibinding with StringFormat
6 years ago
Andrey Kunchev
50deb04e7a
add failing unit test for #3692
6 years ago
Andrey Kunchev
613ba3ffd2
add another test for multibinding
6 years ago
Andrey Kunchev
7f0c502c29
add simple unit test for multibinding
6 years ago
Benedikt Schroeder
0ca4c77acc
Only calculate glyph advances for non fixed pitch fonts
6 years ago
Benedikt Schroeder
95f78bbd3f
Include last line when constraint is surpassed
6 years ago
Benedikt Schroeder
f7aa466803
Include last line when constraint is surpassed
6 years ago
Steven Kirk
370590f3e0
Add failing tests for #2838 .
6 years ago
Dariusz Komosinski
4b13d3c04a
Add benchmarks for TextBox and Button.
6 years ago
Deadpikle
47f487e768
Add SelectedText unit tests
6 years ago
Dariusz Komosinski
0ee508bfa8
Fix CalendarBenchmark not working with new text layout.
6 years ago
Steven Kirk
119a975610
Handle adding/removing application styles.
6 years ago
Steven Kirk
6db44298bb
Handle adding/removing nested styles.
6 years ago
Steven Kirk
e9256a9e40
Initial implementation of add/remove styles.
Only currently works on top-level `Styles` collections, not working in `Application.Styles`.
6 years ago
Steven Kirk
3dcaa174bf
Initial tests for add/remove styles.
6 years ago
Benedikt Schroeder
938fc79ca7
Add tests for the remaining break chars
6 years ago