Max Katz
e61e540c23
Add missing ITextShaperImpl
3 years ago
Max Katz
e2805e4118
Use GetAwaiter().GetResult()
3 years ago
Max Katz
321bf26a0a
Support SetUp and TearDown methods by NUnit
3 years ago
Max Katz
eabd3ca7f0
Fix pack and execute tests on CI
3 years ago
Max Katz
d8da2179f2
Fix build
3 years ago
Max Katz
47f610abf3
Fix inconsistent async/non-async methods
3 years ago
Max Katz
ae04033c76
Use ExecutionQueue in test frameworks
3 years ago
Max Katz
2da88e7cfc
Implement Avalonia.Headless.NUnit integration
3 years ago
Max Katz
d59727e104
Implement AvaloniaFact and AvaloniaTheory attributes, introduce HeadlessUnitTestSession abstraction
3 years ago
Max Katz
06189f77d4
Add netstandard2.0 to the headless XUnit integration
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
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
Tim
6d880d483b
fix Watermark not shown when having a custom watermark set
3 years ago
Steven Kirk
3882bc0217
Remove ControlTemplateResult.
Use `TempateResult<Control>` instead as described in #6666 .
Fixes #10525 .
3 years ago