Dan Walmsley
87c326a8fd
fix mocks.
6 years ago
Dan Walmsley
2ad4002686
fix unit tests.
6 years ago
Dan Walmsley
0148106f54
Seperate RenderScaling from DesktopScaling.
6 years ago
Nikita Tsukanov
d355007c57
Extracted runtime XAML loader to a separate package
6 years ago
Benedikt Schroeder
bc9926014f
Fix typeface fallback for embedded fonts
Fix text wrapping for multiple corner cases
6 years ago
Benedikt Schroeder
2a181d9acb
Introduce TextRunProperties
6 years ago
Steven Kirk
7694fc0484
Don't run layout passes on hidden TopLevels.
To do this we need to pass the root to `LayoutManager`.
Fixes #4161
6 years ago
Steven Kirk
479d480ad9
Parameterize logger on area as well as level.
So we can filter our more logging calls early.
6 years ago
Steven Kirk
fc711e7c86
Measure PopupRoot to MaxAutoSizeHint.
On win32 popup's don't receive `WM_GETMINMAXINFO` so instead query the monitor info for the max work area,
6 years ago
Steven Kirk
1e74316f63
Add unit test for `UseLayoutRounding`.
6 years ago
Benedikt Schroeder
6b8f867006
Initialize the GlyphRun on render
6 years ago
Dan Walmsley
5d8a03d2aa
fix tests
6 years ago
Steven Kirk
bc079008d1
Remove usage of deprecated input APIs.
6 years ago
Nikita Tsukanov
d0b041095d
Inset box-shadow
6 years ago
Nikita Tsukanov
636c6800cf
Merged LostFocus to ITopLevelImpl
6 years ago
Benedikt Schroeder
0b1b3914b3
More text rendering improvements
6 years ago
Steven Kirk
95735d239b
Measure Window to MaxAutoSizeHint.
- Renamed `MaxClientSize` to `MaxAutoSizeHint`
- On Windows get its value from `WM_GETMINMAXINFO` message
- Remove `ILayoutRoot.MaxClientSize` as it's not used any more
6 years ago
Steven Kirk
908eef0b0d
Added failing tests for #3796 .
6 years ago
Steven Kirk
af950096cc
Added failing test for #3784 .
Had to refactor the `MockWindowingPlatform` a bit.
6 years ago
Steven Kirk
323cfdca3a
Make ContextMenu leak tests fail again.
By adding focus/input manager.
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
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
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
ae1475ad43
Rename IStyleRoot -> ILogicalRoot.
The root of our logical tree is denoted by `IStyleRoot` for historical reasons: before #1594 , styling was defined in `Avalonia.Styling` but the logical tree was defined in `Avalonia.Controls`. The styling system needed a root but because it was lower-level than the logical tree it had to define its own root type which was then repurposed for use by the logical tree.
Since #1594 the logical tree is defined in `Avalonia.Styling` as well so we might as well call `IStyleRoot` what it is: the logical tree root.
6 years ago
Benedikt Schroeder
ab5e062deb
Add GlyphRun support
6 years ago
Benedikt Schroeder
1b0221e224
Reworked the font manager to better manage resoures and also work properly with the application lifetime
6 years ago
Steven Kirk
b8b8e3f8cc
Fix IWindowImpl mocks to call Close on Dispose.
6 years ago
Benedikt Schroeder
46d3a91652
Add missing mocks
6 years ago
Benedikt Schroeder
83bfb8ec70
Initial implementation of a font manager
6 years ago
Steven Kirk
0a8915b1cc
Added failing test for #3148
7 years ago
Nikita Tsukanov
66b3da044c
Fixed MouseTestHelper
7 years ago
Nikita Tsukanov
a16e3bff7f
Added InitialPressMouseButton to PointerReleasedEventArgs that returns the button that caused the PointerPressed event
MouseButton is now deprecated with error, since people need to decide which behavior they want
7 years ago
Dariusz Komosinski
01a404836e
Reduce allocations caused by logging.
7 years ago
Nikita Tsukanov
0bad390dac
Added PointerUpdateKind and replaced InputModifiers with KeyModifiers
7 years ago
Steven Kirk
142ead4d39
Make tests compile on CI.
7 years ago
Nikita Tsukanov
f9561260a3
IPopupImpl is now optional advanced feature
7 years ago
Steven Kirk
41e9999ae7
Move MouseTestHelper to Avalonia.UnitTests.
7 years ago
Nikita Tsukanov
8e5c8fee07
Somewhat fixed tests
7 years ago
Steven Kirk
ec45084e6a
Make Pen mutable.
And add `IPen` interface and `ImmutablePen` class.
7 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fe5c1cec76
Use INameScope from IServiceProvider
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Nikita Tsukanov
b33601ee9b
Refactored lifetime control into separate lifetime classes
7 years ago
Steven Kirk
4a386d1b84
Added skipped failing leak test for transitions.
It's leaking on master too, so address this separately.
7 years ago
Nikita Tsukanov
657447ff0c
Reproed binding issue
7 years ago
Nikita Tsukanov
d0301bb4c4
Now passing most of the tests
7 years ago
Nikita Tsukanov
dbf6c3a148
Entire control catalog is now loaded from precompiled xaml
7 years ago
Dariusz Komosinski
1b869ff27b
Get rid of not needed interfaces.
7 years ago
Dariusz Komosinski
12fc28e2d0
Add mocks for geometry impls.
7 years ago
Dariusz Komosiński
8534769435
Platform geometry implementations for D2D and Skia.
7 years ago