Граф коммитов

26933 Коммитов

Автор SHA1 Сообщение Дата
nickodei ab1d77a30d
xdg-open filepath is escaped with quotation-marks correctly (#17682) 2024-12-03 22:09:54 +00:00
laolarou a42d874449
DropShadowDirectionEffect: add AffectsRender for ShadowDepthProperty and DirectionProperty (#17664)
* Update DropShadowEffect.cs

* Update DropShadowEffect.cs

---------

Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
2024-12-03 20:51:14 +00:00
Max Katz da4be92fa0
BoolConverters.Not should support ConvertBack (#17658)
* BoolConverters.Not should support ConvertBack

* Add previously missing BoolConvertersTests and StringConvertersTests

* Fix "false & true" test case
2024-12-03 17:02:35 +00:00
Max Katz a530bbeb99
Make MarkupExtension.ProvideValue method inlinable for StaticResourceExtension and ResolveByNameExtension (#17659) 2024-12-03 16:59:27 +00:00
MizuKuma 44a6f91bc5
Fix broken pre-edit markedText on iOS and solve #17523 (#17618)
* fix: add missing  ref keyword to CombinedSpan3.CopyFromSpan

* fix: fix incorrect indent in IUITextInput.TextInRange and boundary condition for surroundingText

---------

Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-12-03 11:02:21 +00:00
Dong Bin 9ef11b030e
feat: implement Matrix.CreateRotation with center point. (#17657) 2024-12-03 11:01:59 +00:00
Alexander Marek 7210eff633
#17675 - AfterPlatformServicesSetup callbacks are not called by the AfterApplicationSetup callbacks anymore (#17676) 2024-12-03 11:00:01 +00:00
Julien Lebosquain f4633e210c
Fix TextBlock re-measure in infinite container (#17638)
* Add failing test for TextBlock

* Fix TextBlock re-measure in infinite container

* Fix outdated test

---------

Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-11-30 14:21:32 +00:00
Julien Lebosquain 1583de3e33
Fix random test failures and add empty dispatcher verification to tests (#17628)
* Add VerifyEmptyDispatcherAfterTestAttribute

* Use VerifyEmptyDispatcherAfterTest and fix failing tests

* Remove unsupported timeout from sync xUnit tests
2024-11-30 04:25:31 -08:00
Julien Lebosquain e8ce57871e
Add missing ItemGroup to build tasks (#17630) 2024-11-28 01:32:35 +00:00
Julien Lebosquain bed48a7bb6
Rework XAML compilation targets (#17539)
* Added BuildTests projects

* Added VerifyXamlCompilation build target

* Use TargetsTriggerByCompilation for XAML compilation

* Add *.binlog to gitignore

* VerifyXamlCompilation target: set NuGetPackageRoot

* Ensure WpfHybrid build test uses two markup compilation passes

* Fail build tests restore immediately if AvaloniaVersion isn't set

* Fix "could not extract MVID" for up-to-date builds

* Run VerifyXamlCompilation on CI

* Add FSharp build test
2024-11-25 18:25:06 -08:00
Julien Lebosquain c851c7a310
Fix macOS ActivatableLifetime events (#17608) 2024-11-25 18:24:42 -08:00
Dan Walmsley f4d28d5d45
Raise the `EffectiveViewPortChanged` when a control is added to the tree that has already has a valid layout (#17570)
* add unit tests to show that the EffectiveViewPortChanged event is not being raised when it should.

note: this tests are verified against UWP behavior.

* fix raising of EffectiveViewPortChanged event.

---------

Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-11-25 17:06:31 -08:00
lindexi 1222399c08
Optimize SKRoundRectCache Clear Method for .NET 6+ (#17605)
This changes optimizes the `Clear` method in `SKRoundRectCache`. For .NET 6 and higher versions, a faster clearing technique is utilized, enhancing performance.
2024-11-25 10:45:16 +00:00
lindexi f977d2228e
Fix the known valuator do not update. (#17321)
* Fix the known valuator do not update.

Before this change, the properties Pressure, Touch Major, and Touch Minor would not update when the device changed.

After this change, the properties Pressure, Touch Major, and Touch Minor will refresh their values in response to device changes.

* Fix to not setting a value to null when a property could not be found
2024-11-23 10:41:53 +00:00
Max Katz 7aff154709
Use URLWithString for pickers (#17594) 2024-11-23 10:30:26 +00:00
Max Katz 36f385fc3c
Update SkiaSharp (#17595)
* Update stable SkiaSharp

* Update preview SkiaSharp

* Update stable HarfBuzz
2024-11-23 10:27:26 +00:00
JamesSmith85 ed0cc758e4
call proper method on hide (#17573) 2024-11-20 21:02:26 +00:00
Emmanuel Hansen 9beefa34fd
don't check if intent is declared by app before launch (#17571) 2024-11-20 21:01:32 +00:00
Julien Lebosquain a7c3ad9e8a
Win32: fix position being changed on Resize while minimized (#17559) 2024-11-20 09:13:24 +00:00
Max Katz 001c939995
Fix visual snapshot on headless (#17565)
* Check for HasRenderContextAffinity before calling CreateNonAffinedSnapshot

* Add ServerVisualRenderContext.RenderChildren context parameter

* Add Should_Render_To_A_Compositor_Snapshot_Capture test

* Fix xunit tests
2024-11-20 07:07:54 +00:00
Benedikt Stebner 28c21078f5
Fix FontCollection glyph typeface caching (#17519)
* Make sure we always cache the created glyph typeface before we try to find the nearest match

* Cleanup usings

* Add failing test

* Cache the matched glyph typeface for EmbeddedFontCollection
2024-11-19 15:27:55 +01:00
Steve 9091d66e30
Fix crashing after opening a uri on browser (#17524)
* Fix crashing after opening a uri on browser

* Update NavigationHelper.cs
2024-11-19 12:36:25 +01:00
Dong Bin 6728f06586
Fix TreeViewItem Expand/Collapse event source (#17558)
* test: add two fail tests.

* fix: fix Expand/Collapse event source.
2024-11-19 12:35:50 +01:00
Julien Lebosquain 29232ff077
Fix build Clean target (#17531) 2024-11-18 20:16:05 -08:00
Julien Lebosquain 0774007a4c
Remove Tizen workload; use the Tizen SDK package directly instead (#17550) 2024-11-18 15:19:10 +00:00
Julien Lebosquain 973791f950
Fix npm install for parallel builds (#17532) 2024-11-17 17:27:40 -08:00
Max Katz a5f5b8f67e
Fix TimePicker breaking change, when using pre-11.2 styles (#17516) 2024-11-14 16:41:24 -08:00
Julien Lebosquain 8ec3b6b7b3
Add ControlTemplateScope and enable it on ItemsPanelTemplate (#17483) 2024-11-14 15:52:34 -08:00
Jan Karger ツ ☀ 9fb3a13518
CalendarDatePicker - use CustomDateFormatString for parsing the text input (#17465)
* fix: #17291 use CustomDateFormatString for parsing the text input

* fix: use CustomDateFormatString also for watermark

* fix: #17291 check also for SelectedDateFormat == Custom
2024-11-14 15:49:10 -08:00
mpylon a5c0f2bde2
Fixes #17157 (#17171) 2024-11-14 15:47:02 -08:00
Heku f47220570b
Enhance OpenGlControlBase.cs (#17011)
1. Dispose IGlContext correctly
2. Refactor OpenGL initialization check
2024-11-14 15:46:26 -08:00
Max Katz 214ffa7345
Properly handle nc hittest for caption buttons (#17380)
* Set e.Handle=true on caption button click event

* Return HTCLOSE, HTMINBUTTON and HTMAXBUTTON results on corresponding caption buttons

* Redirect fake-client input for caption buttons

* Introduce Win32Properties.NonClientHitTestResultProperty instead of hardcoding

* Changes after revie
2024-11-14 15:23:16 -08:00
Max Katz 1f7b1696c1
[Browser] Add dotnet/runtime#109289 workaround (#17507)
* Add dotnet/runtime#109289 workaround

* Add target framework version condition
2024-11-14 15:22:59 -08:00
zii-dmg ec7e68c19d
Check if path is file (#17500) 2024-11-14 15:22:08 -08:00
Corvin fc5e84cbdf
Update AndroidFramebuffer.cs (#17488) 2024-11-13 21:04:02 -08:00
Julien Lebosquain 0960d89f1f
Revert "Respect the value of SkipCompilerExecution (#17145)" (#17499)
This reverts commit dccaea61a6.
2024-11-14 00:12:39 +00:00
Baochen Wang b35fd5a890
add automation peer for UserControl (#17480)
* add automation peer for UserControl

* fix automation name

* change base class to ControlAutomationPeer
2024-11-13 04:59:37 +00:00
Julien Lebosquain 601425d519
Nullable annotations for LinuxFramebuffer (#17489) 2024-11-12 23:12:12 +00:00
Kevin B bef43cec4b
Update IInsetsManager.cs (#17468)
Fixing minor spelling mistake. Visibile -> Visible

Co-authored-by: Tim <47110241+timunie@users.noreply.github.com>
2024-11-12 18:59:03 +00:00
Julien Lebosquain 337a56f140
Throw ObjectDisposedException for ClipboardImpl/ClipboardDataObject (#17472) 2024-11-12 09:43:25 +01:00
Jan Karger ツ ☀ 0fdd84f594
AutoCompleteBox don't lose text selection when contextmenu opens (#17462)
* fix: 17453 don't lose text selection when contextmenu opens on another control

* fix: 17453 don't effect other callers and move the check to FocusChanged method
2024-11-10 13:06:49 +00:00
Benedikt Stebner d411bd2156
Fix TextBlock TextAlignment issues when a HorizontalAlignment is defined (#17402)
* Always measure TextBlock with infinite width

* Make sure the constraint is always fulfilled

* Add some tests

* Adjust tests because we no longer retain the TextLayout in the arrange pass
2024-11-10 14:06:32 +01:00
StefanKoell b46126714b
Fixes and improves several access key (accelerator) related issues (#17292)
* fix accelerator behavior for menu items and labels

* add elements with matching accelerator to test cycling in sub menus

* Add AccessKeyHandler tests for accelerators with more than one match

* Implement accelerator behavior based on WPF handling

* Remove commented code

* Remove OnAccessKey override => handled by DefaultMenuInteractionHandler

* remove obsolete test

* handle OnAccessKeyPressed for selected tab item

* fix unit tests

* use AccessKeyEvent instead of AccessKeyPressedEvent in unit tests

* navigate menu with and without ALT key

* Revert formatting changes in Tests

* Fix AccessKeyHandler comments

* move private types to bottom

* Remove lock statements, optimize removal of AccessKeyRegistrations

* remove call to Dispatcher.UIThread.Post

* simplifiy AccessKeyHandler.SortByHierarchy

* remove unnecessary method AccessKeyHandler.GetTargetsForSender

* regenerate API suppression file

* revert unneeded changes in MenuPage.axaml

* correct formatting changes

* do not sort by hierarchy if too few targets

* make AccessKeyEventArgs internal

* make AccessKeyPressedEventArgs internal

---------

Co-authored-by: Hans Docsek <hans.docsek@gmail.com>
2024-11-10 10:27:07 +00:00
Steven Kirk 57b4be4b73
Added basic date/time picker automation peers. (#17426) 2024-11-08 02:17:23 -08:00
Max Katz b78b995042
Add .net 8 multitarget (#17452) 2024-11-08 02:16:58 -08:00
Max Katz f9006d5449
Handle previously missed event types in PenDevice (#17454) 2024-11-08 00:53:32 -08:00
Matt Heimlich 9cecb90ba1
Fix adapter selection in Vulkan demo (#17442)
Changed the adapter index in the for loop to correctly iterate through available adapters. This ensures that the correct adapter is selected based on its Luid.
2024-11-06 17:18:44 +00:00
Julien Lebosquain 8f7686fdfa
Fix TemplateBinding in custom IControlTemplate implementations (#17427)
* Add failing test for TemplateBinding inside custom control template

* Fix TemplateBinding XAML compilation error for custom IControlTemplate

---------

Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-11-05 14:33:19 -08:00
Easley bde82e69b5
Optimization for Process.GetCurrentProcess() in Avalonia.Win32.Automation (#17422)
* Use Environment.ProcessId instead of Process.GetCurrentProcess().Id

* revert override of GetPropertyValue

* apply suggestions from review
2024-11-05 14:32:42 -08:00