Steven Kirk
eb8ea62bda
Use tuple name iinstead of Item1.
6 years ago
Steven Kirk
29636f06c9
Don't invalidate arrange during arrange.
When `Offset` is adjusted due to scroll ancoring during the arrange pass in `ScrollContentPresenter`, don't invalidate the arrange: we've got it handled.
6 years ago
Steven Kirk
6dc992d04c
Reset count to 0 when re-queueing control.
When a layout of a control exceeds the maximum passes and we re-queue it, reset the attempt count to 0 because otherwise it can end up stuck in the layout queue forever even when the next layout can succeed with e.g. 2 passes. This can happen with `ItemsRepeater`.
6 years ago
Steven Kirk
6124a3c505
Initial implementation of IScrollAnchorProvider.
On `ScrollContentPresenter`.
6 years ago
Steven Kirk
ca7b1d75cd
Invalidate measure when clearing anchor.
6 years ago
Steven Kirk
094cbb899f
Adjust `EffectiveViewportChanged` calculation.
Instead of simply reading old `TranslatedBounds` value when `Bounds` changes, use the clip and transform from the previous `TranslatedBounds` with the new `Bounds`.
6 years ago
Steven Kirk
d22b4ecbc4
Give ItemsRepeater items a background.
So one can see their bounds easily.
6 years ago
Steven Kirk
14e95f10d5
Fix incorrect name of WinUI event.
6 years ago
Steven Kirk
402e497fa8
Register action on lower priority than render.
`OnEffectiveViewportChanged` needs to be triggered first, otherwise `_makeAnchorElement` is cleared too early, breaking scrolling in a list with variable-height items.
6 years ago
Steven Kirk
498cc73bfd
Ported repeater logging from WinUI.
6 years ago
Steven Kirk
074b8c5248
Remove setting cache length to 0.
`ItemsRepeater` doesn't work properly with a 0 cache length.
6 years ago
Steven Kirk
91c280a014
Don't invalidate if viewport unchanged.
6 years ago
Steven Kirk
6c19e729a3
FIx bringing an item into view.
6 years ago
Steven Kirk
c08ea6cdd2
Remove hack.
Hack was added when porting `ItemsRepeater. Not sure it's needed anymore.
6 years ago
Steven Kirk
4756100cd8
Set correct cache length.
The default value needs to be the same as the default value in the associated `ItemsRepeater` properties.
6 years ago
Steven Kirk
df00cb29b4
Add ItemsRepeaterPage scroll to item buttons.
To diagnose problems with `ItemsRepeater`.
6 years ago
Steven Kirk
c3a5c48d6f
Raise ScrollChanged when layout updated.
To be consistent with WPF/UWP `ScrollChanged` should be raised when layout finishes updating, rather than when the individual properties are changed.
6 years ago
Steven Kirk
d46265233d
Raise LayoutUpdated at the end of layout pass.
This attempts to match the behavior of `LayoutUpdated` in WPF and UWP.
6 years ago
Steven Kirk
e209307931
Added nullable annotations.
6 years ago
Dariusz Komosiński
d6693dbfd4
Merge pull request #4020 from MarchingCube/perf-inpc
Benchmark and simple optimization for INPC accessor.
6 years ago
Dariusz Komosiński
211c4e5aec
Merge branch 'master' into perf-inpc
6 years ago
Jumar Macato
4822e8a610
Merge pull request #4061 from AvaloniaUI/fixes/4059-transitions-keynotfound
Fix KeyNotFound exception in Animatable
6 years ago
Dariusz Komosiński
68f1ac94ba
Merge branch 'master' into fixes/4059-transitions-keynotfound
6 years ago
Nikita Tsukanov
eaa861016f
Merge pull request #4056 from AvaloniaUI/use-gpu-by-default
use gpu by default on all platforms.
6 years ago
Dan Walmsley
c009b5c78d
add package reference for angle natives.
6 years ago
Steven Kirk
0694b22c51
Fix KeyNotFound exception in Animatable.
When transitions are replaced, add the new transitions before removing the old transitions, so that when the old transition being disposed causes the value to change, there is a corresponding entry in `_transitionStates`.
Also search the `Transitions` collection from last to first to find a matching transition, so that later added transitions have priority.
Fixes #4059
6 years ago
Steven Kirk
6239e4f5e3
Added failing test for #4059 .
6 years ago
Dan Walmsley
adaf001234
use gpu by default on all platforms.
6 years ago
Benedikt Stebner
e87bedd21f
Merge pull request #4055 from jp2masa/textblock-maxlines
Added MaxLines property to TextBlock
6 years ago
José Pedro
50985a62d2
Changed test cases as requested.
6 years ago
Benedikt Stebner
eeed12fe2b
Merge branch 'master' into textblock-maxlines
6 years ago
José Pedro
48177eddb7
Added MaxLines property to TextBlock.
6 years ago
Nikita Tsukanov
820f13dc24
Merge pull request #4050 from AvaloniaUI/revert-4010-feature/fluent-slider-template
Revert "Fluent Slider port"
6 years ago
Jumar Macato
d314454b6e
Revert "Fluent Slider port"
6 years ago
Nikita Tsukanov
52701a0341
Merge pull request #4049 from microhobby/libdrm-fix-toradex-vivante
LinuxFramebuffer: DrmOutput: Use the drmModeAddFB2 as main call and drmModeAddFB as fallback
6 years ago
Jumar Macato
6dc41201dd
Merge pull request #4010 from AvaloniaUI/feature/fluent-slider-template
Fluent Slider port
6 years ago
Matheus Castello
2ab224d5ef
LinuxFramebuffer: DrmOutput: Use drmModeAddFB2 as main call
Use the drmModeAddFB2 as main call and drmModeAddFB as fallback
Signed-off-by: Matheus Castello <matheus@castello.eng.br>
6 years ago
Matheus Castello
bdc7689516
LinuxFramebuffer: Output: Drm: Add gbm_bo_get_format wrapper
This will get us the correct buffer format to use with drmModeAddFB2
Signed-off-by: Matheus Castello <matheus@castello.eng.br>
6 years ago
Matheus Castello
7016bc52d1
LinuxFramebuffer: Output: Drm: Add drmModeAddFB2 wrapper
drmModeAddFB2 gives us the possibility to specify the pixel format
directly in the call
Signed-off-by: Matheus Castello <matheus@castello.eng.br>
6 years ago
Jumar Macato
cd3b7e93e9
Merge branch 'master' into feature/fluent-slider-template
6 years ago
Jumar Macato
39c14454ee
simplify cmp
6 years ago
Jumar Macato
b035015302
add new API for Track for controls that handles their own dragging logic.
6 years ago
Jumar Macato
450aea3d5b
set hit test correctly
6 years ago
Jumar Macato
6e700ca260
Merge branch 'feature/fluent-slider-template' of github.com:AvaloniaUI/Avalonia into feature/fluent-slider-template
6 years ago
Jumar Macato
fb4cb4e1e1
add snapping action
6 years ago
danwalmsley
cb74b018b6
Merge pull request #4044 from MarchingCube/fix-combobox-minheight
Specify ComboBox min height in 1D
6 years ago
Dariusz Komosinski
e0baaf3359
Bring 4 dimensional combo box min height back to mortal plane.
6 years ago
Jumar Macato
7412e3c47c
Update src/Avalonia.Controls/TickBar.cs
Co-authored-by: Dariusz Komosiński <darek.komosinski@gmail.com>
6 years ago
Jumar Macato
6d5fdce4db
Jump to value on press
6 years ago
Dan Walmsley
90484787f3
revert file.
6 years ago