Julien Lebosquain
f94d48cd4f
Clipboard rework ( #19347 )
* New clipboard with IDataTransfer
* Move legacy format handling to DataObject wrappers
* macOS clipboard rework
* Browser clipboard rework
* Android clipboard rework
* iOS new clipboard
* X11 clipboard rework
* Simplify IDataTransfer API
* Simplify IClipboardImpl API
* Add DataFormat documentation
* Make DataFormat.SystemName platform specific
* Fix clipboard/DnD samples
* Fix native clipboard UTI conversion
* Adjust IDataTransfer namespaces
* Add Obsolete attributes to IDataObject related methods
* Better API for DataTransferItem
* Tizen clipboard rework
* Add missing clipboard extension methods
* Split IDataTransferItem into IAsyncDataTransferItem and ISyncDataTransferItem
* Rename back ISyncDataTransfer to IDataTransfer
* Added IClipboard API suppressions
* Make IPlatformDragSource NotClientImplementable
* Rename DataFormatKinds
* Added DataTransferItem.CreateText/File
* Implemented typed DataFormat<T>
* Fix X11 text/uri-list encoding
* Add API suppressions
* Adjust ClipboardUriListHelper stream ownership
* Fix legacy clipboard BinaryFormatter deserialization
* Fix macOS build
(cherry picked from commit 1f404646fa )
1 year ago
Nikita Tsukanov
ab535d0c7a
[X11] Added INCR support ( #18428 )
* Refactor X11 clipboard to use session-based approach
* INCR client
* Implemented INCR server
* Detect INCR threshold
* missing return
* Handle review comments
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
(cherry picked from commit ec0edda7c3 )
1 year ago
Max Katz
7b17997253
Update Avalonia.BuildServices package version ( #19757 )
* Update Avalonia.BuildServices package version
* Update Avalonia.BuildServices package version to 11.3.1
1 year ago
Benedikt Stebner
682c09133e
Make sure inlines properly inherit text run properties from their parent ( #19750 )
* Make sure inlines properly inherit text run properties from their parent
* Adjust comment
1 year ago
Jan Kučera
f0818c5d2d
Do not recapture already captured element ( #19740 )
* Do not recapture already captured element
* Recapture tests
---------
Co-authored-by: Jan Kučera <miloush@users.noreply.github.com>
1 year ago
Yury
b268c555c3
Fix: Browser StorageItem methods not working and handle conversion issue ( #19708 )
* Fix names in browser StorageHelpers methods import
* Fix returning handlers instead of files in BrowserStorageProvider
* Fix returning handles instead of storage items in Move, GetFile and GetFolder methods
1 year ago
Kirill Osenkov
029e7aa7c3
Remove Microsoft.SourceLink.GitHub PackageReference ( #19744 )
SourceLink comes with the SDK now, and having the old package has an incremental build bug, see:
https://github.com/dotnet/sdk/issues/36666#issuecomment-2162173453
1 year ago
Steven Kirk
dc4973a17f
Add Add/Remove event handler methods to DragDrop. ( #19739 )
Attached events should follow the pattern of providing static `Add<event-name>Handler` and `Remove<event-name>Handler` methods, but `DragDrop` did not provide these.
1 year ago
Tim Miller
c7f3e7c451
Add FindAssembliesGrantingInternalAccess ( #19735 )
1 year ago
Tim Miller
b4b25b0887
[OSX] Move Drag and Drop logic to TopLevelImpl ( #19731 )
* Move Drag and Drop logic to TopLevelImpl
* Update src/Avalonia.Native/TopLevelImpl.cs
Co-authored-by: Max Katz <maxkatz6@outlook.com>
---------
Co-authored-by: Max Katz <maxkatz6@outlook.com>
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
1 year ago
Nikita Tsukanov
77157e1d1e
[XAMLX] Propagate TypeConverters from the original CLR property to avalonia property ( #19727 )
1 year ago
Melissa
3b11d97724
Added HeadingLevel to AutomationProperties ( #19696 )
* Added HeadingLevel to AutomationProperties
* Added support for HeadlingLevel accessibility on Mac
1 year ago
Melissa
31c43d978e
Added resource for TextControlPlaceholderOpacity ( #19705 )
* Added resource for TextControlPlaceholderOpacity
This allows overriding of the opacity instead of it being hardcoded to 50%.
* Added `TextControlPlaceholderOpacity` to Simple theme TextBox
1 year ago
dif-sam
f90444b676
Fixing a memory leak when closing a window ( #19699 )
Added unsubscription from the X11Globals.WindowActivationTrackingModeChanged event in the Dispose method of the WindowActivationTrackingHelper class
1 year ago
Jan Kučera
fe09ad9eb7
Respond to WM_CAPTURECHANGED ( #19685 )
* Respond to WM_CAPTURECHANGED
* Addressing PR feedback
---------
Co-authored-by: Jan Kučera <miloush@users.noreply.github.com>
1 year ago
Julien Lebosquain
7f68687511
Fix BoxShadow equality ( #19650 )
1 year ago
Jay Mao
d7ad0bfcbc
Fix typeface exception when created with empty font family name ( #19654 )
* add unit test case to check typeface creation with empty font family.
* fallback to default font family when the font family name is empty.
---------
Co-authored-by: jay.mao <jay.mao@ringcentral.com>
1 year ago
Dan Walmsley
771d32e5a5
Add SplitViewPanePlacement settings for Top and Bottom. ( #19465 )
* add SplitViewPanePlacement settings for Top and Bottom.
* remove duplicated styles.
* add missing transparent fills of lightdismiss area.
* add simple theme support for splitview pane placement top/bottom.
1 year ago
robloo
4aab747831
Add Boxshadow(s) Documentation Comments ( #19644 )
* Fix formatting errors/warnings in BoxShadow
* Fix formatting errors/warnings in BoxShadows
* Add documentation comments to BoxShadow
* Add documentation comments to BoxShadows
1 year ago
Tom Edwards
3bcab0ecc1
Fix tooltip hit test following a dirtyRect invalidation not respecting IsHitTestVisible ( #19642 )
HitTester sees visuals with IsHitTestVisible=false unless you specifically filter them out! Added XML doc warning.
1 year ago
Benedikt Stebner
977d06fda4
Merge pull request #19675 from Gillibald/blockSizeBackport
Limit InlineUIContainer to available width (#19651 )
1 year ago
Jan Kučera
2c1b56ba11
Limit InlineUIContainer to available width ( #19651 )
* Limit InlineUIContainer to available width
* Unit test for InlineUIContainer maximum width
* Invalidate InlineUIContainer's host
* Better InlineUIContainer visual children management
* OnInlineHostChanged also handled by InlineUIContainer
---------
Co-authored-by: Jan Kučera <miloush@users.noreply.github.com>
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
1 year ago
Emmanuel Hansen
7bc6b00340
Win32 - Fix maximized window being able to resize ( #19620 )
* fix maximized window being able to resize
* only set border style when client area is extended
1 year ago
Tim Miller
77df5cea2a
Adjust macOS Tray/Menu icons scaling ( #19628 )
* Set TrayIcon image size to 17, 17
* Use Floor for setting icon size
1 year ago
Swarley97
50bc9582ee
fix os timer in windows dispatcher ( #19597 )
Co-authored-by: Tim Nootny <tim.nootny@empowersuite.com>
1 year ago
Benedikt Stebner
765f6d01d2
Merge pull request #19630 from Gillibald/textBackports
Text backports
1 year ago
Benedikt Stebner
d429c5859d
Make sure the resm scheme is registered before we attempt to parse something ( #19629 )
1 year ago
Benedikt Stebner
d897c990f2
Fixes TextLineImpl.GetTextBounds with trailing zero width ( #19616 )
* Fixes TextLineImpl.GetTextBounds with trailing zero width
* Add assert
1 year ago
Benedikt Stebner
5d78e5b633
TextLine.GetTextBounds zero width run fixes ( #19602 )
* Rework GetRunBounds
* Reduce duplication
* Update tests/Avalonia.Skia.UnitTests/Media/TextFormatting/TextLineTests.cs
Co-authored-by: Jan Kučera <10546952+miloush@users.noreply.github.com>
---------
Co-authored-by: Jan Kučera <10546952+miloush@users.noreply.github.com>
1 year ago
Benedikt Stebner
b0365f67c7
Share Avalonia.Controls with Avalonia.Controls.Documents ( #19191 ) ( #19625 )
* Share internals with Avalonia.Constrols.Documents
* Inlines might be null
* Use IAddChild<T>
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
1 year ago
Benedikt Stebner
904408f640
Ignore empty preeditText when no composition was active before ( #19595 ) ( #19621 )
Co-authored-by: Gillibald <stebner@avaloniaui.net>
1 year ago
Max Katz
d52b96348d
Backport GRContext bugfix from 12.0 branch ( #19615 )
1 year ago
Max Katz
a5cc13e3c0
Fix headless FontManager leak ( #19599 )
* Dispose font manager after headless session
* Add xunit/nunit LeakTests
1 year ago
Julien Lebosquain
c3e1f01573
Fix SkiaSharp 3.118+ Metal interop ( #19598 )
1 year ago
Colton
2101d9718c
Dispose of Win32 GDI handles when TrayIcon closed ( #19583 )
1 year ago
Benedikt Stebner
038fa34f3d
Rework TextLineImpl.GetTextBounds ( #19576 )
* Rework TextLineImpl.GetTextBounds
* Minor adjustments
* Fix GlyphRun.GetDistanceFromCharacterHit in cluster hit
1 year ago
Colton
39b3c72c3f
Fixes duplicate class property registration ( #19558 )
* Fix ClassBindingManager property dictionary insert
* Prepend ClassPropertyPrefix to key when inserting into registered properties dictionary to be consistent with lookup.
* Added ClassBindingManager unit tests
1 year ago
Emmanuel Hansen
ea37e35ca6
Fix BringDescendantIntoView with respect to margins ( #19544 )
* remove margin deflation in BringDescendantIntoView and update related test to test cases with margin and no margin
* create transform relative to presenter, instead of child.
* update tests
* fix tests
1 year ago
Max Katz
780f043bab
Pass app delegate to the default UseiOS call ( #19550 )
1 year ago
Valery Varaksa
aec182aec9
Fix selected files filename ( #19540 )
1 year ago
robloo
8544d73efe
Update Brush.Parse() to Handle all Color Formats ( #19526 )
* Add unit test for all color format Brush parsing
* Support parsing all known color formats in Brush.Parse()
* Update property syntax
* Remove unnecessary usings
* Use an actual hex color
* Fix new brush test
* Switch order of brush parsing so known color optimizations are used
* Add more documentation comments to KnownColors
* Fix displayed text in BorderPage
InnerBorderEdge not InnerBorder
1 year ago
Tom Edwards
abce416e8e
Fixed TransformGroup.Children collection changes not changing TransformGroup.Value ( #19525 )
1 year ago
msojocs
510665290c
Fix: RelativePanel calculation error with extensible and aligned child ( #19474 )
* Feat: Add unit test for RelativePanel.
The ScrollViewer's scrollbar does not display correctly.
* Fix: RelativePanel calculation error
The ScrollViewer's scrollbar does not display correctly.
1 year ago
Ondřej Sušovský
036c47f9d8
Fix validation error not being cleared on valid input ( #19477 )
* Add failing test for binding error not being cleared, when bound value does not change
* Fix clearing binding error
1 year ago
Nikita Tsukanov
546a95c673
Schedule a full render pass on CompositionBatchCompletion to prevent tearing ( #19487 )
1 year ago
Wiesław Šoltés
20090fdc57
Fix usage of GridSplitter inside ItemsControl as ItemsPanel ( #19200 )
* Get parent Grid when its used in ItemsControl as ItemsPanel
* Get properties values from ContentPresenter if its used in ItemsControl
* Add unit tests
* Move test types
* Adjust GetParentGrid switch and expose helper methods for override
1 year ago
Benedikt Stebner
4b83190afe
Fix buffer index calculation for the zero width character handling during hit testing ( #19488 )
1 year ago
Benedikt Stebner
34621efddb
Fix rename
1 year ago
Benedikt Stebner
a80ff73ccc
FontLoading adjustments ( #19538 )
* Adjust FontFamily parsing so non system fonts require a specific format
* Change relative Uri detection so it uses Contains
1 year ago
Benedikt Stebner
f174f5f255
Fix FontCollection MatchCharacter ( #19494 )
* Fix FontCollection.MatchCharacter usage inside the FontManager implementation
Fix default MatchCharacter implementation
Add a unit test
* Reuse existing font collection key
* Fix resm FontFamilyIdentifier
* Fix FontFamily definition
---------
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
1 year ago