12 Commits

Author SHA1 Message Date
Javier Suárez 424863d5ff Add PlaceholderForeground property to TextBox, AutoCompleteBox, CalendarDatePicker, NumericUpDown (#20303)
* Added WatermarkForeground property

* Added samples

* Added unit tests

* Added render tests

* Fix merge issues

* Updated render tests

* Standardize watermark foreground naming

* Pending changes

* More changes

* Use UseFloatingPlaceholder

* Fix tests
2026-02-05 16:35:47 +00:00
Julien Lebosquain 3e41310917 Enable nullability in all samples (#20379) 2026-01-05 09:09:27 +00:00
Emmanuel Hansen 56d94d64b9 Add IActivityApplicationLifetime for android (#18893)
* add lifetime with view factory on android

* rename android lifetime interface

* add warning when using ISingleViewApplicationLifetime for android, set current main activity reference on OnResume

* fix nit
2025-06-25 08:38:20 +00:00
Emmanuel Hansen 2dc808f3e8 Fix insets on android 15 (#18844)
* fix insets on android 15

* add api diff

* fix nit
2025-06-05 17:26:33 +02:00
Julien Lebosquain 563bb12ff1 Bump LangVersion to C# 12 (#15399) 2024-04-16 20:05:20 +00:00
Max Katz 326ef7c9fd Add .NET 8 target (Avalonia 11.1) (#14535)
* Add .NET 8 target to packable projects

* Update test projects

* Update sample projects to target .NET 8

* Update main Avalonia package to target .NET 8 as well

* Remove MSBuildEnableWorkloadResolver hack and some minor change

* Use net8.0 in nuke build as well

* Pin 8.0.0 SDK

* Adjust API validation

* Pin a valid version

* Remove net461 target from Avalonia package

* Remove unused net6.0 target from Avalonia.Designer.HostApp

* Adjust API diff

* Update ControlCatalog.Android.csproj

* Remove MSBuildEnableWorkloadResolver

* Fix Browser issues on .NET 8

* Fix .NET 8 error

* Fix merge conflicts

* Replace explicit TFMs in .csproj files with a centralized registry

* Fix merge conflict

* Fix AvsLegacyWindowsTargetFrameworks and add hacks for the tests

* Update XCode project CommandLineArgument

---------

Co-authored-by: Nikita Tsukanov <keks9n@gmail.com>
2024-03-05 13:37:26 -08:00
Emmanuel Hansen 6d9780c5b2 Add Platform InputPane interface (#13363)
* android - remove keyboard size from safe area padding

* add software keyboard listener

* change keyboard height to keyboard rect

* rename height members in software keyboard listener to bounds

* fix docs

* update api

* update toplevel input pane propety name

* remove redundant attribute from input pane interface

* Add iOS implementation

* Fix iOS event

* Change iOS easing functions

* Update demo

* Make StartRect nullable as it's not available on every platform

* Windows IInputPane implementation

* Implement browser input pane

* Minor fixes

* Apply suggestions from code review

Co-authored-by: workgroupengineering <workgroupengineering@users.noreply.github.com>

* Update src/Windows/Avalonia.Win32/Input/WindowsInputPane.cs

Co-authored-by: workgroupengineering <workgroupengineering@users.noreply.github.com>

* Dispose InputPane just in case

* Fix build error, replace ref with in

* Fix relative keyboard geometrychange on browser

* Fix compile error because of the wrong style

---------

Co-authored-by: Max Katz <maxkatz6@outlook.com>
Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
Co-authored-by: workgroupengineering <workgroupengineering@users.noreply.github.com>
2023-11-29 15:38:10 +00:00
Max Katz 3df092f714 Impl auto safe area padding (#13047)
* Make iOS safe area more consistent with Android

* Implement TopLevel.AutoSafeAreaPadding (enabled by default)

* Make SafeAreaDemo more representative

* Some fixes + add comments

---------

Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
2023-11-21 12:19:38 +00:00
Simon Cropp eb7611488e csproj cleanup (#12657) 2023-09-24 02:38:12 +00:00
robloo 85390a1812 Add EventArgs parameter to OnLoaded/Unloaded methods 2023-06-18 11:19:01 -04:00
Emmanuel Hansen b95feeb0af fix nullable warnings 2023-04-12 14:48:55 +00:00
Emmanuel Hansen d203c1b386 add safe area demo 2023-04-12 13:34:51 +00:00