Dan Walmsley
7c8704c09a
Merge branch 'master' into test-multiple-optimizations-together
# Conflicts:
# src/Avalonia.Controls.DataGrid/DataGridColumn.cs
11 months ago
Nikita Tsukanov
410b46edfc
[X11] attempt to use _NET_WM_STATE_FOCUSED or _NET_ACTIVE_WINDOW for tracking window activation, if available ( #18464 )
11 months ago
affederaffe
c642e27d45
Fix DBus type in exported menu ( #18450 )
11 months ago
Tom Edwards
7087595849
Extend diagnostic TreeNode features to more types ( #18430 )
- Display the name of any INamed
- Display the classes of any StyledElement
Removed stale documentation about nonexistent StyledElement.Clasess setter
11 months ago
Steven Kirk
fb5121a42f
Null conditional operator in bindings ( #18270 )
* Update ncrunch config.
* Fix test naming.
* Add BindingExpressionGrammar tests.
We only had tests for the error states, and that was named incorrectly.
* Parse null-conditionals in bindings.
* Initial impl of null conditionals in binding path.
Fixes #17029 .
* Ensure that nothing is logged.
* Make "?." work when binding to methods.
* Don't add a new public API.
And add a comment reminding us to make this class internal for 12.0.
* Use existing method.
11 months ago
Julien Lebosquain
c925ca5c63
Move all submodules to external directory ( #18431 )
* Move DataGrid submodule
* Move Numerge submodule
* Move XamlX submodule
* Remove DataGrid from slnf file.
* Git clean
11 months ago
Nikita Tsukanov
c3b4d61b8a
Added IClipboard:TryGetInProcessDataObjectAsyns ( #18340 )
* Implemented IClipboard.TryGetInProcessDataObjectAsync for X11
* [Win32] Implemented TryGetInProcessDataObjectAsync
* Rest of the platforms
* Run `nuke ValidateApiDiff`
---------
Co-authored-by: Max Katz <maxkatz6@outlook.com>
11 months ago
Julien Lebosquain
07a76145f4
Remove DataGrid from the main repository ( #18401 )
11 months ago
Dan Walmsley
83a15f8c5d
Merge branch 'master' into test-multiple-optimizations-together
11 months ago
Julien Lebosquain
3c7c469018
Raise pointer events on captured element ( #18420 )
11 months ago
Emmanuel Hansen
e189ef9c53
Fix - Search for visual parents when hittesting for pointer events ( #18416 )
* search for visual parents when hittesting
* Add unit test for hit testing on disabled visual
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
11 months ago
Krzysztof Krysiński
6a010a89f2
Added surface dispose to DrawingSurfaceDemoBase ( #18412 )
11 months ago
Dong Bin
c416fc716d
fix: InputMethod should remove handler. ( #18414 )
11 months ago
StefanKoell
ce72eced6b
Implement SetItems method in ResourceDictionary ( #18354 )
* Implement AddOrUpdateRange method in ResourceDictionary
* Change to SetItems method nam, remove flag
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
11 months ago
Johan Polson
156f587cfa
Use "handled" for keybord input in Browser ( #18349 )
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
11 months ago
Benedikt Stebner
d55421bdc9
Introduce GlyphTypeface.FaceNames ( #18392 )
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
11 months ago
Vadim Kutin
edaaf5bbda
Improve KeyGesture.ToString() output in case when Key is set to Key.None ( #18353 )
* Improve ToString() output in case when Key is set to Key.None
* Update KeyGesture.Parse method to support only modifiers combinations
* Update tests with empty combination and modifiers-only combinations
11 months ago
Maxwell Katz
82329882ac
Support complex types in datatype ( #18379 )
* Fix XamlTypeExtensionNode not being handled on the x:DataType transformer
* Add testt with complex DataType
* Make vm:MainWindowViewModel+TestItem nested type generic on BindingDemo
11 months ago
Rastislav Svoboda
6e1cab99f6
Fix: TextBox having selection and pressing up / down arrows ( #18385 )
11 months ago
Emmanuel Hansen
8a7945e492
Bring control into view only if control isn't properly visible in viewport ( #18359 )
* bring control into view only if control isn't currently in viewport
* fix margin add comments
* add more bring to view tests
11 months ago
Betta_Fish
7d3f490b04
[Grid] Add RowSpacing and ColumnSpacing ( #18077 )
* Add spacing properties
* Add spacing while computing final offsets
* Add spacing while calculating desired size
* Add unit tests
* fix missing spacing arrangement
* draw grid line
* Add property changed handler
* add new unit test
* Resolve star spacing
* fix AffectsMeasure
* overflow unit test
* Clean up
---------
Co-authored-by: Poker <poker_sang@outlook.com>
11 months ago
Julien Lebosquain
6b869e3795
Layout performance improvements
# Conflicts:
# src/Avalonia.Base/Visual.cs
1 year ago
Dan Walmsley
1fcabca328
add a benchmark for inherited property change notifications.
11 months ago
Dan Walmsley
9c1d9d595d
update docs and remove value tuple that could cause allocation.
12 months ago
Dan Walmsley
2d4ecf847d
fix unit tests with hack to prove concept.
12 months ago
Dan Walmsley
5848beaca0
Add an optimized path for notifying property changes for inherited values
Avoids many allocations of event args.
12 months ago
Maxwell Katz
acd4653411
Add diagnostic metrics/activities ( #18314 )
* Add System.Diagnostics.DiagnosticSource nuget package for pre-.NET 8 targets
* Move System.Memory reference to Base.props
* Add CompositorRenderPass and CompositorUpdatePass metrics
* Layout measure/arrange pass metrics
* Add UI render pass and input pass meters
* Add observable metrics
* Add RaisingRoutedEvent activity
* Add FindingResourceActivity activity
* Add AttachingStyleActivity and EvaluatingStyleActivator activities
* Add PerformingHitTest activity
* Add MeasuingLayoutable/ArrangingLayoutable activities
* Missed RaisingRoutedEvent definition
* Missed tag definitions
* Start FindingResourceActivity on static resources too
* Fix compilation
* Naming
* Add Avalonia.Diagnostics.Diagnostic.IsEnabled runtime switch
* Maybe make it more trimmable as well
11 months ago
Emmanuel Hansen
603a2bdb43
add content template to flyout ( #18361 )
11 months ago
affederaffe
b66471b356
Bump DBus stack ( #18343 )
11 months ago
workgroupengineering
61de7e36b1
feat(Window): Allow to persist content of Clipboard after App close ( #16778 )
* feat(Window): Allow to persist content of Clipboard after App close
* fix: missing iOS Platform
* fix(Api Validation): Missing suppression
* Revert "fix(Api Validation): Missing suppression"
This reverts commit 04b4e0c634 .
* fix: Address review
* fix: ValidateApiDiff
* test: Fix build issue
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
11 months ago
Julien Lebosquain
b815659435
Fix Window.MeasureOverride measuring with the old ClientSize ( #18338 )
11 months ago
Jonko
418e15d294
Search all SelectingItemsControl items with TextSearch on key input, not just realized ones ( #17506 )
* Modify SelectingItemsControl to not just use unrealized items
* Fixup null deref
* Get unrealized items searched in comboboxes
* Fixup one small comparison bug
* Reset file that shouldn't have been changed
* Try again
* Revert frfr
* Revert frfrfr
* Fixup per PR feedback
* Remove documentation from internal method
* Remove unused usings
12 months ago
Nikita Tsukanov
abd7a88608
[DRAFT] Send dispose command for CompositionTarget as an OOB batch ( #18119 )
* Send dispose command for CompositionTarget as an OOB batch
* Make Close_Should_Remove_PointerOver to provide some render interface stub
* why ins't reactive stuff using our headless testing?
* fix?
---------
Co-authored-by: Dan Walmsley <dan@walms.co.uk>
12 months ago
Alexandre Mutel
85ffed056a
Remove `List<IObserver<T>>.ToArray()` allocations in `LightweightObservableBase` ( #18316 )
* Remove `List<IObserver<T>>.ToArray()` allocations in `LightweightObservableBase`
* Cleanup code
* Remove unused code
* Remove space
12 months ago
pjt33
11b5d421c4
Fix SlicedStream.Seek(offset, SeekOrigin.End) ( #18313 )
* Fix SlicedStream.Seek(offset, SeekOrigin.End)
This fixes https://github.com/AvaloniaUI/Avalonia/issues/13604
The offset _from is applied in set_Position, so applying it also in Seek mispositions the stream. ZipArchive exposes the problem by seeking to the end to read the table of contents.
* Add tests for SlicedStream
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
12 months ago
Alexandre Mutel
72caa3ccba
Fix TextLayout.Width calculation ( #18305 ) ( #18310 )
* Fix TextLayout.Width calculation (#18305 )
* Use WinSymbols3.ttf
12 months ago
Nikita Tsukanov
0cb1cf2990
Don't alter any InputElement properties from in-process dnd handler ( #18288 )
12 months ago
Nikita Tsukanov
e58c168545
In-process dnd should always handle pointermoved for consistency with actual dnd ( #18287 )
12 months ago
Nikita Tsukanov
640d249ab7
[X11] Use XcursorLibraryLoadCursor for dnd cursors ( #18286 )
12 months ago
Maxwell Katz
5e7963b545
Root assemblies for SRE XAML loader ( #18290 )
* Root assemblies for SRE XAML loader
* Update XamlTestBase.cs
12 months ago
Julien Lebosquain
3ee7102843
Fix Win32 MonitorFromRect ( #18285 )
12 months ago
Rastislav Svoboda
939c78047e
TextBox: clear selection when moving the caret horizontally ( #18255 )
* TextBox: clear selection when moving the caret horizontally
* fix and add unit tests
12 months ago
Rastislav Svoboda
c1e0ba7db4
iterate over visible columns only when DnD column header ( #18251 )
12 months ago
Poker
117450dbbe
Fix DockPanel index out of range ( #18261 )
* Update DockPanel.cs
* Update DockPanelTests.cs
12 months ago
Dong Bin
afa124f505
Add Analyzer and CodeFixProvider for Initializing Bitmap with a "avares" scheme argument. ( #18150 )
* feat: add bitmap analyzer.
* feat: add code fix provider.
* feat: use actual name. add comment.
12 months ago
Aleksei Smirnov
df6382a3c6
#18192 Fix Implicit x:DataType defining for InheritDataTypeFromItems attributed property ( #18206 )
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
12 months ago
Julien Lebosquain
5824d9b079
Warning fixes: '25 winter wave ( #18103 )
* Use TryGetValue in UnicodeEnumsGenerator
* Suppress incorrect CA2256 in Win32.Automation
* Fix xUnit analyzer warnings
* Misc warning fixes
* Ignore some obsolete warnings
12 months ago
Dong Bin
daf3d5805b
feat: use visual brush if Header is control. ( #18154 )
12 months ago
nightfog-git
156abb7395
fix NumericUpDown Spinned event ( #18180 )
* Raise Spinned event after value change
* Simplify invoke event
12 months ago
Maxwell Katz
355cf162b1
Add FontSize property validation ( #18198 )
* Add FontSize property validation
* Also disallow 0 value for the font size
* Also check for IsInfinity
12 months ago