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
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
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
Steven Kirk
022294ec7a
MenuItem.InputGestureText -> InputGesture
Changed `MenuItem`'s `string InputGestureText` property to `KeyGesture InputGesture` and gave it a value converter in the default template, because the string representation of a key gesture depends on platform, and putting platform-specific behavior into `ToString` isn't a good idea.
6 years ago
Steven Kirk
30e8cac05d
Update to .NET core 3.1.
6 years ago
José Pedro
2cb3b5f916
Updated obsolete API usages in interfaces.
6 years ago
Benedikt Schroeder
38bd8b8010
Fix text line hit testing
Fix some xml comments
6 years ago
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
6 years ago
Steven Kirk
18537addd7
Fix problems with setter binding priorities.
We need to make sure to set up the bindings as soon as the setter is instanced, even if it's not activated immediately.
6 years ago
Steven Kirk
2944099428
Display gestures in NativeMenuBar.
To do this we needed to change the `KeyGesture.ToString()` method to produce input gesture text suitable for menus. Also demonstrated in `MainWindow` how to produce different gestures/headers depending on platform.
6 years ago
Steven Kirk
13ba7f3d0b
Refactored selector matching.
Match selectors from left-to-right, as before we were checking things like property equality (and creating a `PropertyEqualsActivator`) before checking that the control is of the correct type. Also hopefully makes the selector matching logic more readable.
6 years ago
Steven Kirk
dc55d65287
Refactored styling.
- Don't use Rx in the styling system. Instead introduces `IStyleActivator` which is like an `IObservable<bool>`-lite in order to cut down on allocations.
- #nullable enable on touched files
6 years ago
Steven Kirk
b82ca9aca9
Add an AvaloniaProperty visitor.
We already have some specific internal methods for routing certain methods via an untyped property to a typed property, but adding support for the visitor pattern allows us to support arbitrary use-cases.
6 years ago
Steven Kirk
097eeb646f
Don't allow StyledElement.Styles to be set.
It's not settable in Application and I can't see a reason it should be in `StyledElement`. Also add a `Styles` ctor that takes a parent.
6 years ago
Steven Kirk
2e99fa9a91
Make setting styled values disposable.
6 years ago
Steven Kirk
cca4247c05
Added EventRoute.
Instead of traversing the tree while raising an event, instead first build an event route and then raise the event along it.
Fixes #3176
6 years ago
Steven Kirk
4e62ff3ffb
Added failing test for #3176 .
6 years ago