Andrey Kunchev
ec92b90e81
add a test for multibinding with StringFormat
7 years ago
Andrey Kunchev
50deb04e7a
add failing unit test for #3692
7 years ago
Andrey Kunchev
613ba3ffd2
add another test for multibinding
7 years ago
Andrey Kunchev
7f0c502c29
add simple unit test for multibinding
7 years ago
Benedikt Schroeder
0ca4c77acc
Only calculate glyph advances for non fixed pitch fonts
7 years ago
Benedikt Schroeder
95f78bbd3f
Include last line when constraint is surpassed
7 years ago
Benedikt Schroeder
f7aa466803
Include last line when constraint is surpassed
7 years ago
Steven Kirk
370590f3e0
Add failing tests for #2838 .
7 years ago
Dariusz Komosinski
4b13d3c04a
Add benchmarks for TextBox and Button.
7 years ago
Deadpikle
47f487e768
Add SelectedText unit tests
7 years ago
Dariusz Komosinski
0ee508bfa8
Fix CalendarBenchmark not working with new text layout.
7 years ago
Steven Kirk
119a975610
Handle adding/removing application styles.
7 years ago
Steven Kirk
6db44298bb
Handle adding/removing nested styles.
7 years ago
Steven Kirk
e9256a9e40
Initial implementation of add/remove styles.
Only currently works on top-level `Styles` collections, not working in `Application.Styles`.
7 years ago
Steven Kirk
3dcaa174bf
Initial tests for add/remove styles.
7 years ago
Benedikt Schroeder
938fc79ca7
Add tests for the remaining break chars
7 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.
7 years ago
Steven Kirk
30e8cac05d
Update to .NET core 3.1.
7 years ago
José Pedro
2cb3b5f916
Updated obsolete API usages in interfaces.
7 years ago
Benedikt Schroeder
38bd8b8010
Fix text line hit testing
Fix some xml comments
7 years ago
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
7 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.
7 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.
7 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.
7 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
7 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.
7 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.
7 years ago
Steven Kirk
2e99fa9a91
Make setting styled values disposable.
7 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
7 years ago
Steven Kirk
4e62ff3ffb
Added failing test for #3176 .
7 years ago
Steven Kirk
4f2c215993
Pass ResourceChanged messages to child styles.
Fixes #3590 .
7 years ago
Steven Kirk
7345336b9a
Added failing unit tests for #3590 .
7 years ago
Steven Kirk
8b03d32128
Added failing test for #3584 .
7 years ago
Steven Kirk
0f9ceb25b7
Make ScrollIntoView accept an index, not an item.
Fixes #2569 .
7 years ago
Steven Kirk
c4afd15d90
Use SelectionModel in TreeView.
7 years ago
Steven Kirk
6001115573
Use SelectionModel in SelectingItemsControl.
7 years ago
Steven Kirk
0c894e20d3
Added SelectedItemsSync.
To sync between an `ISelectionModel` and a `SelectedItems` collection.
7 years ago
Steven Kirk
f103df6a9a
Changed IsSelected semantics.
Move old `IsSelected` semantics to `IsSelectedWithPartial` and add a new `IsSelected` method which checks for direct selection.
7 years ago
Steven Kirk
96fbd6c531
Don't only select leaf nodes from SelectRange.
Related issues:
https://github.com/microsoft/microsoft-ui-xaml/issues/1969
https://github.com/microsoft/microsoft-ui-xaml/issues/1984
7 years ago
Steven Kirk
95190e168b
Fixed SelectionModelChildrenRequestedEventArgs returning incorrect so...
…urce index
fixed sourceindex childrenrequested args
Port of ee03bace14
7 years ago
Steven Kirk
12abeab47e
Remove UWP stubs in unit tests.
7 years ago
Steven Kirk
f79b58cc55
Added failing test possibly for #3466 .
Not sure if this is the cause of #3466 , but it's definitely wrong.
7 years ago
Steven Kirk
9763faec3a
Added failing test for #3569 .
And one passing test too.
7 years ago
Steven Kirk
886eee831c
Added failing test for #3426 .
7 years ago
Steven Kirk
11a8c01ef1
Added failing tests for #3545 .
`PropertyChanged` is not being fired when binding is disposed. Also change some other unit tests to ensure that priority passed in event args is correct.
7 years ago
Steven Kirk
f16080d00b
Added failing leak test for #3545 .
7 years ago
Dariusz Komosinski
71d1f80d5a
Benchmark attaching styles.
7 years ago
Dariusz Komosinski
992ced0c9c
Cleanup code.
7 years ago
Dariusz Komosinski
ffe0020698
Benchmark for creating Calendars.
7 years ago
Steven Kirk
ccd7236346
Added failing test for #3550 .
Calling `InvalidateMeasure` during `ExecuteInitialLayoutPass` causes invalid bounds/desired size.
7 years ago