Max Katz
009000123f
Update Screens docs
3 years ago
Max Katz
8ba233b23f
Fix Screens.ScreenFromWindow API
3 years ago
Emmanuel Hansen
75cbab78ad
only store runtime platform when requested
3 years ago
Emmanuel Hansen
b9fd35051f
store IRuntimePlatform in DeferredParentServiceProvider
3 years ago
Julien Lebosquain
9a06290142
Correctly remove ContentPresenter's content from its parent host
When the content is updated while being detached from the visual tree.
3 years ago
Steven Kirk
a03b73a734
Always add control in measure queue to arrange queue.
And also removed the checks for `IsAttachedToVisualTree`: that's going to be checked in `Arrange` and `Measure`.
Fixes #11161
3 years ago
Giuseppe Lippolis
110b536738
fix(Animation): fix Issue #11156 System.InvalidOperationException: Call from invalid thread
3 years ago
Steven Kirk
3d693beffa
Clarify `ClearItemContainer` docs.
And change usages of "should" to "must" as it's not optional.
3 years ago
Steven Kirk
8a5a5c8d44
Remove element from list before recycling.
Remove the element from the realized element list before recycling it, so that `IndexFromContainer` and `ContainerFromIndex` report the container as not found during `ClearItemContainer`. Fixes selection being reset when a container is unrealized.
3 years ago
Steven Kirk
8a354d8cb9
Only prepare items that are containers once.
When an `ItemsControl` returns true for `IsItemItsOwnContainer`, `ItemContainerPrepared` should only be called once the first time the container is prepared.
Requires that `ContainerFromIndex` returns `ItemIsOwnContainer` items that have previously been prepared in order for `SelectingItemsControl` to update their selection correctly when outside the realized viewport.
Fixes #11119
3 years ago
Steven Kirk
c77276d00a
Don't clear ItemIsOwnContainer in PanelContainerGenerator.
One shouldn't call `ClearContainer` on a container that is an item. Adjusted `SelectingItemsControlTests` because selection is actually maintained on move with containers hold their own `IsSelected` state.
Fixes #11128
3 years ago
Yannick Excoffier
4016da0a2c
Set double click on presenter instead of whole header
3 years ago
Steven Kirk
6c8afc714c
Correctly handle TreeViewPage data context change.
Fixes #11120 .
3 years ago
Steven Kirk
9f3dbfff6a
Added docs to clarify difference with SizeChanged.
3 years ago
Steven Kirk
109c05aeab
Increase max number of permitted layout attempts.
And log a message when a control was skipped due to a layout cycle.
3 years ago
Steven Kirk
b8fed4cbea
Remove hack from VirtualizingStackPanel.
No longer needed since layout invalidation was fixed in last commit.
3 years ago
Steven Kirk
c2220039da
Re-layout descendants when made effectively visible.
Fixes #11076 .
3 years ago
Max Katz
decf80cb77
Adds RenderScaling and DesktopScaling back to the public API together with ScalingChanged
3 years ago
Max Katz
89e1680501
Fix DefinitionList parsing
3 years ago
Max Katz
41d76f256b
Add AvaloniaListAttribute
3 years ago
Tom Deseyn
0921a98067
Use latest Tmds.DBus version.
3 years ago
Max Katz
b8ecad2cbc
Restore resource include validation
3 years ago
Max Katz
753b821035
Fix merged dictionaries ordering
3 years ago
Max Katz
bbbc1280ff
Rename RegionBrush to SystemRegionColor and use it in default templates
3 years ago
Max Katz
1aba81a27f
Fix non dynamic accent brushes
3 years ago
Max Katz
c9b1ed8f51
Implement ColorPaletteResources as a public API
3 years ago
Max Katz
a09c182e89
Implement SystemAccentColors backed by the actual system values
3 years ago
Max Katz
a507e92b31
Fix theme-dependend markup extensions not knowing current theme context
3 years ago
affederaffe
f77b67db97
Move comment
3 years ago
affederaffe
1117332e4d
Add AccentColor support for KDE
3 years ago
Max Katz
1bce8de686
Fix merge conflict
3 years ago
Steven Kirk
6b13c81527
Raise WindowBase.Resized before SizeChanged.
3 years ago
Emmanuel Hansen
2f5586fad0
make refresh visualizer PullDirection internal
3 years ago
Dan Walmsley
4fbcfac676
fix build.
3 years ago
Steven Kirk
cf52ab43cd
Added WindowBase.TryGetPlatformHandle.
#11062 made `WindowBase.PlatformImpl` internal so we need to expose a different want to get the window handle.
3 years ago
Steven Kirk
981dfd29d7
Added WindowBase.Resized event.
Which exposes the resize reason and new client size. Required renaming `PlatformResizeReason` to `WindowResizeReason`. Made `TopLevel.HandleResized` method internal.
3 years ago
Benedikt Stebner
dd1df9a539
Do not execute OnClick when access key is pressed in combination with AltGr
3 years ago
Steven Kirk
5262eec4cf
Passing null gives us the point relative to the root.
And update the documentation for `GetPosition` to explain what `null` does (as in `GetCurrentPoint`).
3 years ago
Max Katz
8ab2aa7dc9
Add context flyout to the dev tools tree
3 years ago
Max Katz
bf06f075cb
Fix crash on Cursor.Parse in DevTools
3 years ago
Max Katz
56d87931db
Inject array for IList
3 years ago
Max Katz
ec19a0876e
Cleanup Points collection usage, make it use IList
3 years ago
Steven Kirk
e5acebabcb
Make thumb drag delta relative to root.
#10892 changed the thumb drag delta to be relative to the parent, but the problem was that is that if the thumb controls the position of the parent then the delta will be incorrect.
This was causing a bug in `TreeDataGrid` headers which were jumping around: the `Thumb` is a child of the header and causes the header to move.
3 years ago
Nikita Tsukanov
c63571dcda
Reuse SpanHelpers in Avalonia.Build.Tasks
3 years ago
Max Katz
c2b2803483
Nullable attributes
3 years ago
Max Katz
477abdd2f0
Remove AvaloniaListAttribute
3 years ago
Max Katz
862d07fcaf
Support special case for points collection
3 years ago
Max Katz
38c1cc95c6
Init AvaloniaListAttribute
3 years ago
Nikita Tsukanov
c5ae8bb762
Fixes
3 years ago
Nikita Tsukanov
30064443b1
Added [PrivateApi]
3 years ago