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

26801 Коммитов

Автор SHA1 Сообщение Дата
Julien Lebosquain e3c64189a4
Extract non-generic members from frequently used generic types (#16585)
* Extract EffectiveValue notification methods to reduce code size

* Extract non-generic members from frequently used generic types
2024-09-14 16:01:57 -07:00
Julien Lebosquain 20f77a3490
Fix bindings without property path (#16729)
* Added failing binding tests

* Fix bindings without property path

---------

Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
2024-09-14 15:57:33 -07:00
Max Katz 751b2731e3
Adjust diagnostic apis (#17022)
* Make base project internals visible to DiagnosticsSupport, just in case for now

* Make ValueStoreDiagnostic diagnostic API more usable with wider range of types

* Add MultiBindingExpression internal members for visibilty
2024-09-14 15:55:27 -07:00
Max Katz e22cfa8424
XamlX update: IProvideValueTarget fixes and nested-types support (#17021)
* Update XamlX

* Include nested types PR as well

* Fix Designer.HostApp compilation on older targets
2024-09-14 15:37:30 -07:00
Benedikt Stebner 2e83ac1a04
Convert control codepoints into zero width space during shaping (#17004) 2024-09-14 15:11:08 +00:00
xLEGiON d5f0188ccf
Fix SelectableTextBlock Selection (#15536)
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
2024-09-12 16:10:52 -07:00
Benedikt Stebner d72ed1078f
Make sure GlyphRunImpl.InkBounds are always at a positive location (#16601) 2024-09-12 16:10:28 -07:00
Max Katz c50e731d8d
ResourceProvider upgrade (#16928)
* Implement AvaloniaObject on ResourceProvider

* ColorPaletteResources and ColorPaletteResourcesCollection should inherit ResourceProvider

* Use ResourceProvider in tests too

* Adjust API diff

---------

Co-authored-by: Steven Kirk <grokys@users.noreply.github.com>
2024-09-12 16:07:13 -07:00
Julien Lebosquain 932f54316b
Fixes geometry render bounds when curves are present (#16756)
* Added failing geometry bounds tests

* Fixed geometry bounds

* Fixed RenderboundsTests

---------

Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
2024-09-12 19:16:06 +00:00
Emmanuel Hansen 282c0a60d8
Android - call base dispatch key event before called toplevel's override (#16969)
* android - call base dispatch key event before called toplevel's override

* android - handle keyevent in avalonia before calling base DispatchKeyEvent

---------

Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
2024-09-12 16:18:01 +00:00
Dong Bin a8a8060617
feat: expose TreeViewItem expansion status to root event. (#16984)
* feat: expose TreeViewItem expansion status to root event.

* feat: use expand/collapse event similar to Expander.

* feat: 1. delete useless event arg 2. move event to TreeViewItem. 3. Fix documentation. 4. Change routing to Bubble|Tunnel as both parent and children may care about this epxanding status.
2024-09-12 09:05:17 +00:00
Benedikt Stebner 7da58ba205
Fix transform desync (#16363)
* Make sure wrapper and platform DrawingContext have the same transform after Flush

* Add some tests

* Update Avalonia.RenderTests.WpfCompare.csproj

* Remove comments

* Use test font
2024-09-12 08:27:04 +00:00
Shaojun Li ad8e67c177
Fix IME not working in some scenarios. (#16476)
* Fix IME not working in some scenarios.

* If other services trigger `OnNameChange` before `GetNameOwnerAsync`, then we will incorrectly connect to other services, and will be stuck at `Connect`. We should ignore irrelevant services.

* `WatchNameOwnerChangedAsync` should be called only once.

* Add log.
2024-09-12 05:04:54 +00:00
Dong Bin 9e43170058
feat: add UpdateSourceTrigger support for ReflectionBindingExtension (#16861) 2024-09-12 04:29:10 +00:00
Jerry Jian f47b733a71
Fix the name of font family is null cause crash. #12190 (#16677)
Co-authored-by: jianwenlong <jian-wenlong@rui-hai.com>
2024-09-12 04:10:59 +00:00
Lighto eb356310c1
Fixed nearest font matching not working (#16796) 2024-09-12 04:02:42 +00:00
Heku ddf7238cc9
Remove invalid Properties folder reference in project (#16955) 2024-09-11 20:10:49 -07:00
Benedikt Stebner 533218d13a
Sync CaretIndex directly (#16981) 2024-09-11 20:10:27 -07:00
Jeremiah Simonsen e19850f988
fix: only remove knob transitions when dragging (#16993) 2024-09-11 20:04:13 -07:00
Brubning 3858a7214b
Allow selection of multiple consecutive blocks in SelectingItemsControl. (#16907)
* Stop Selection.Clear() when selecting a range to enable multiple consecutive blocks to be selected.

* Reinstated Selection.Clear() when range is true and toggleModifier is false.
When range and toggleModifier are true, consecutive ranges are selected.
Added new unit test.
2024-09-11 20:01:29 -07:00
Emmanuel Hansen 94e81ba9f4
android - fix selection bounds in TextEditBuffer (#16970) 2024-09-11 20:01:10 -07:00
Julien Lebosquain a31ff27fdf
Fixes stuck modifier keys on focus lost on macOS (#16788)
Co-authored-by: Steven Kirk <grokys@users.noreply.github.com>
2024-09-11 20:00:53 -07:00
VisualMelon add5ef02a0
Fix SimpleTheme for TimePicker (#16758)
* Fix control template for TimePicker in Simple theme

* Tidy template declarations in TimePicker.cs
2024-09-11 20:00:09 -07:00
dbriard 39f4360077
Added BoolTransition (#16941) 2024-09-11 19:51:53 -07:00
js6pak dbbb6d1819
Make InjectAvaloniaXamlOutput run before ComputeResolvedFilesToPublishList (#16835) 2024-09-05 20:56:08 +00:00
Emmanuel Hansen 77fe0400fc
vulkan - fix display out of date error (#16887) 2024-09-02 13:00:16 +00:00
mpylon 82d64089e1
Fixes #16346 (#16347) 2024-08-30 23:06:34 +00:00
Benedikt Stebner 4f2dd6741a
Add TypographicFamilyName to GlyphTypeface and use it for FontCollection (#16844)
* Introduce TypographicFamilyName

* Add TypographicFamilyName to the FontCollection cache if available
2024-08-30 09:06:16 +00:00
Ge de86c5a058
fix: fix a code typo in XSharedDirectiveTests (#16765)
The typo causes the resources `implicitSharedInstance1` and `implicitSharedInstance2` are both always `AvaloniaProperty.UnsetValue`, where `Assert.Same` passes.
2024-08-27 14:34:06 -07:00
workgroupengineering 06ece8da88
feat: Align `PathSegments` ctor overloads to WPF `PathSegmentCollection` (#16809) 2024-08-26 15:23:51 +00:00
Nikita Tsukanov d6ecd36f7b
Prevent .NET from randomly calling WndProc in RequestCompositionBatchCommitAsync (#16804)
This method isn't reentrancy-friendly
2024-08-26 15:22:35 +00:00
Yoh Deadfall e627821ed3
Reduced memory alloc for combined binding subjects (#16794) 2024-08-23 22:27:10 +00:00
workgroupengineering 5581516e6b
fix: NativeMethods.txt (#16780) 2024-08-22 20:06:26 +00:00
Chris Pulman 2d51602760
Update ReactiveUI and Rx base version (#16719)
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
2024-08-20 09:06:37 +00:00
Max Katz dd17e85271
window.WindowDecorationMargin.Top can be negative, but Height cannot (#16735) 2024-08-19 23:01:30 -04:00
Emmanuel Hansen 49c7d25dea
refactor x11 screen (#16705) 2024-08-19 22:20:02 -04:00
Max Katz 6ca040b3b3
11.2.x Private/PublicAPI adjustments (#16733)
* Mark RenderWorker as internal

* Add remaining Fonts.Tables types as internal

* Mark new diagnostic APIs as a PrivateAPI

* Restore old GetStyleDiagnostics APIs, but mark them with [PrivateApi], avoiding breaking changes
2024-08-19 16:17:25 -07:00
Max Katz 1cfa82ca57
Custom popup placement callback (#15667)
* Add CustomPopupPlacement API

* Add Placement="Custom" support for Flyout, ToolTip and ContextMenu controls as well

* Adjust some API changes

* Add Avalonia.Controls.Primitives.IPopupHost.ConfigurePosition breaking change

* Extract new types into separated files

* Fix build after merge conflict

* Adjust nupkg.xml

* Dispose property subscriptions after popup is closed, avoiding flickering

* Adjust API to be more future proof and add new parameters.

* Add new ContextRequestedEventArgs overload while I am on it
2024-08-19 14:54:44 -07:00
Tom Edwards 3b1c1f4234
Validate all width/height properties of Layoutable when they are set (#15753) 2024-08-19 14:54:29 -07:00
Sewer. de3aa58c5c
Request for Feedback: Improving Startup Latency in X11 (#16033)
* Improve: X11 Startup time with asynchronous Gfx Startup

Before: 80-100
After: 66-81

* Changed: Move CursorFactory Back to its Place

* Changed: An alternative attempt with lazy cursor generation.
2024-08-19 14:49:56 -07:00
Nikita Tsukanov 135b5984b1
Changed modifiers for injected non-client implementable method (#16626)
* Changed modifiers for injected non-client implementable method

* Keep internal modifier
2024-08-19 14:44:28 -07:00
Emmanuel Hansen f989fec158
grow datagrid height if there's available space (#16527)
Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-08-19 14:33:35 -07:00
affederaffe 1d9a0183eb
Bump DBus stack take 2 (#15685)
* Bump DBus stack
- Use new Variant system

* Fix merge issues

* Intentionally break the DBus spec

* Dispose DBus connection and signal watchers

* Bump Tmds,DBus.Protocol

* Dispose DBus objects correctly

* Use PathHandler for DBus objects

* Revert to old initialization

* Bump DBus packages

* Fix global menu

* Add comment about wrapped variants

* Bump Tmds.DBus.SourceGenerator

* Update api baseline

* Bump Tmds.DBus stack

---------

Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-08-19 06:32:06 +00:00
Julien Lebosquain 6d10a6830e
Ensure SurroundingText is empty for empty line (#16710)
Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-08-17 00:19:27 +00:00
Julien Lebosquain 21d8cea26b
Fix caret position after backspace (#16712)
* Added failing test for caret position after backspace

* Fix incorrect caret position after backspace
2024-08-16 14:45:11 -07:00
Emmanuel Hansen 854078067d
Win32 - Fix Window Frame Size and Position issues. (#16608)
* add tests

* win32 - ensure frame size and position doesn't change for client operations

* remove forced position setting

---------

Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
2024-08-16 17:31:15 +00:00
Tom Edwards 8a61eca9c2
Extend the client area when a Win32 window is opened in maximised state (#16593) 2024-08-16 15:51:02 +00:00
workgroupengineering 228ecc5003
feat: x:Shared (#16644)
* feat: x:Shared

* test: Add x:Shared test

* fix: Address review

* fix: Address review

* fix: Address review
2024-08-16 12:25:02 +00:00
workgroupengineering 44528a8198
fix: Button should not fire the click event on the space key when it is not active (#16619)
* test: Check that the button should not fire the click event on the space key when it is not active

* fix: Button should not fire the click event on the space key when it is not active

* fix: Address review
2024-08-16 09:27:27 +00:00
robloo 9fe34158e4
ColorPicker Simple Theme Fixes (#16654)
* Disable vertical scrolling in Simple theme NumericUpDown

* Improve color picker simple themes

* VerticalContentAlignment

---------

Co-authored-by: Max Katz <maxkatz6@outlook.com>
2024-08-15 06:48:15 +00:00