Steven Kirk
ad0a813304
Nullability tweaks in lower-level libraries.
4 years ago
Nikita Tsukanov
e6c08a13d7
Added reflection-free API for weak events
4 years ago
Giuseppe Lippolis
2ac4eafdcf
fixes: WarningsAsErrors in Visual Studio
4 years ago
Steven Kirk
ecb981da2d
Small tidy up.
4 years ago
Steven Kirk
2de57da8ff
Added nullable annotations to Avalonia.Layout.
4 years ago
Steven Kirk
691f93a1ed
Multi-target net6.0.
4 years ago
Yoh Deadfall
94059f521f
ElementManager follows the behavior of ViewManager
4 years ago
Takoooooo
1e855bd738
cleanup
4 years ago
Miha Markič
97c33f432a
Applies spell checking on mostly comments, but also non public members and arguments
5 years ago
amwx
17c94d3cf3
Add impl from upstream
5 years ago
Max Katz
3984ba2ec5
Enable nullability for InputElement, Interactive, Visual
5 years ago
Dan Walmsley
b5d608e1c6
fixes from upstream, wraplayout.
5 years ago
Dariusz Komosinski
c2790472b5
Made LayoutEpsilon a property.
5 years ago
Dariusz Komosinski
3ac615c4e3
Make GritSplitter calculations match the ones in WPF.
5 years ago
Dariusz Komosiński
ee383659e2
Restore missing DPI correction for GridSplitter behavior.
5 years ago
Jumar Macato
518d4022c8
Delete ApiCompatBaseline.txt
5 years ago
Jumar Macato
ce655d715c
Apply suggestions from code review
5 years ago
Jumar Macato
ceb170e472
add apicompat for the new api
5 years ago
Yoh Deadfall
f831b5d346
Fixed parameter name in uniform grid state
5 years ago
Yoh Deadfall
da9b7c32ac
Branchless data index check
5 years ago
Yoh Deadfall
8f330b0b82
Return desired size as is without recreating it
5 years ago
Mike Ward
eeb2745db5
Fix #5151 same as Microsoft
5 years ago
Steven Kirk
3a247bde2a
LayoutState should call LayoutStateCore.
See upstream implementation at c6c8d08423/dev/Repeater/LayoutContext.cpp (L13-L18)
5 years ago
Nikita Tsukanov
84734f22e4
Disable strong name signing until SharpGen issue is resolved
5 years ago
Nikita Tsukanov
e4505ce861
Strong name support
6 years ago
Steven Kirk
d5224d4bb0
Ensure valid index before calculating offset.
6 years ago
Steven Kirk
08a8badd7a
Don't try to realize index -1.
`Algorithm_GetAnchorForTargetElement` can return -1 and when it does so we try to realize that item, which obviously doesn't exist, so boom.
6 years ago
Steven Kirk
60c0a44a87
Clean up EffectiveViewportChanged earlier.
Clean up the `EffectiveViewportChanged` subscriptions before calling `OnDetachedFromVisualTree` so that (un)subscribing to the `EffectiveViewportChanged` event in `OnDetachedFromVisualTree` doesn't cause a leak.
6 years ago
Dan Walmsley
f0c4e90c78
remove apicompat baselines.
6 years ago
Dan Walmsley
7d92a5183e
add baselines.
6 years ago
Dan Walmsley
451ee7c0b7
Revert "add baselines."
This reverts commit fd817c06b0 .
6 years ago
Dan Walmsley
fd817c06b0
add baselines.
6 years ago
Dan Walmsley
26d68e9958
add api diff to most projects.
6 years ago
Steven Kirk
f20039070d
Fix a couple of bugs in LayoutManager.
- Clear `_running` at the end of all layout passes, not at the end of the first set of 3 attempts
- Fix a bizarre anti-copy-pasta in `RaiseEffectiveViewportChanged` where we were comparing `startCount` to the size of the measure queue twice instead of the arrange queue
6 years ago
Steven Kirk
13d828cdcc
Duplicate listeners before raising EffectiveViewportChanged.
6 years ago
Steven Kirk
02b2f3dc15
Remove listeners backwards in case of duplicates.
6 years ago
Steven Kirk
64174f37af
Tweak effective viewport calculation.
This logic isn't in the UWP version as it only clips to scrollports.
6 years ago
Steven Kirk
d0e74b7dbd
Include transforms in effective bounds.
6 years ago
Steven Kirk
b5da0310f1
Update tests from UWP tests.
UWP tests are at: https://github.com/grokys/EffectiveBoundsTestsUWP
Try to make the Avalonia tests match them as closely as possible in order to easily port them across.
6 years ago
Steven Kirk
9c7aeaf713
Initial implementation of EffectiveViewportChanged.
6 years ago
Steven Kirk
2807cbe6cb
Make LayoutManager disposable.
And dispose it on `TopLevel` close: this allows layout passes to be run before a window/popup is shown but prevents it being run after close.
6 years ago
Steven Kirk
536a2f7c62
Check correct root in invalidation calls.
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
Dariusz Komosinski
57ea1d502c
Mark LayoutManager public functions as virtual so users can adjust the behavior.
6 years ago
Rustam Sayfutdinov
8414ace5cf
Remove duplicate code for RoundLayoutValue
6 years ago
Rustam Sayfutdinov
70f37dcf21
Revert "Remove duplicate code for RoundLayoutValue"
This reverts commit 2edcb3b676 .
6 years ago
Steven Kirk
a81306f72c
Updated repeater logging to new API.
6 years ago
Steven Kirk
ff38cf7609
Fix non-virtualizing stack layout alignment.
We need to return the max of the bounds and the constraint, otherwise horizontal/vertical alignment doesnt work correctly.
6 years ago
Rustam Sayfutdinov
2edcb3b676
Remove duplicate code for RoundLayoutValue
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