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

660 Коммитов

Автор SHA1 Сообщение Дата
Gerald Versluis 15c1c38f09 Update azure-pipelines.yml 2022-01-26 13:31:10 +01:00
Gerald Versluis 9d0ae0bfbd Update azure-pipelines.yml 2022-01-26 13:31:10 +01:00
Gerald Versluis 53b3abc0f7 Update azure-pipelines.yml 2022-01-26 13:31:10 +01:00
github-actions[bot] 082a2b40e4
Automated dotnet-format update (#1797) 2022-01-25 16:23:16 -08:00
Andreas0xffff 882ace669c
Allow user interaction during animation to enable faster tap repetitions. (#1760)
Co-authored-by: Vladislav Antonyuk <33021114+VladislavAntonyuk@users.noreply.github.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2022-01-25 15:01:39 +01:00
Kirill 77eca83db4
Android 5 crashing and Borderless Ripple Effect on Android (#1756)
* [Android] Fix crashing on Android 20 -> 22 if the NativeAnimation is applied to non group elements (like Image)

* [Android] Implement Borderless Ripple effect

* Add examples for borderless ripple effect

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
2022-01-25 14:21:29 +01:00
github-actions[bot] 2e379a3209
Automated dotnet-format update (#1793) 2022-01-23 17:29:20 -08:00
Rachel Kang 256dd1d23c
[Android] Update a11y SetSemanticFocus (#1791)
* Add SemanticExtensions SetFocus and Announce

* Add Windows Announce implementation

* Update based on feedback

* Fix SetSemanticFocus for Android

* Revert order of usings to clean up diff

* Use ViewHoverEnter instead

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2022-01-23 15:06:02 +01:00
Vladislav Antonyuk aa6e2e63b3
Update packages, Fix WPF Sample app (#1768)
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2022-01-22 02:36:02 +00:00
github-actions[bot] 759445f03b
Automated dotnet-format update (#1784) 2022-01-21 16:35:13 -08:00
Brandon Minnick a3c61c05f9
Merge Develop to Main (#1790)
* merge main -> dev (#1300)

* Automated dotnet-format update (#1296)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* https://github.com/xamarin/XamarinCommunityToolkit/issues/1292 (#1301)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>

* Expander: Add touch capture view + common animation length / easing properties (#1349)

* Added base animation props

* Added TouchCaptureView property

* Updated light dismiss xml docs (#1366)

* [Converter] Added IsInRangeConverter (#1158)

* Added IsBetweenConverter

* Renamed to IsInRangeConverter

* Added Sample Page

* Added IsInRangeConverterViewModel

* Updated UnitTests

* Cleanup

* Removed RevertResult

* Implemented BindableObjectExtension

* Made ValueConverterExtension inherited from BindableObject

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* Drawing View (#740)

* DrawingView (#468)

* DrawingView control, samples, documentation

* fix build issues

Co-authored-by: Vladislav Antonyuk <vlad.antonyuk@outlook.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* fixed codestyle on Android renderer

* GTK renderer adjustments

* iOS renderer adjustments

* MacOS renderer adjustments

* TIzen rendere adjustments

* UWP renderer adjustments

* WPF tests

* Fixed merge conflict

* Fixed wpf stackoverflow exception

* fixed iOS leaks

* revert toast change

* removed wpf implementations

* root sample page to WelcomePage

* removed DrawingView ctor from MainWindow

* removed drawing instructions from readme

* Update README.md

* Drawing View - Fix nullable, add doc to the public method (#1293)

* Fix nullable, add doc to the public method. add WPF

* Remove WPF renderer from the library.

* Change exception message for small images, fix nullable

* return null instead of exception (#1339)

Co-authored-by: Vladislav Antonyuk <33021114+VladislavAntonyuk@users.noreply.github.com>
Co-authored-by: Vladislav Antonyuk <vlad.antonyuk@outlook.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* Added IsLightDismissed to PopupDismissedEvent (#1362)

* Added IsLightDismissed to PopupDismissedEvent; Fixed Dismissed event so it fires when light dismissed for UWP and Android

* Removing stale comments

* Added Opened event handler to set isOpen to true when Popup displays

* Fixed event cleanup code to unregisterd Closing event

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* Fix Android crashes if Bitmap is small, Fix iOS drawing in scrollView (#1421)

* Add StatusBarEffect and NavigationBarEffect classes to manage their color and style (#812)

* Sample Android implementation (doesn't work)

* Update to Android 11

* Add OnElementPropertyChanged

* Refactor GetWindow a bit

* Add dummy implementations for iOS and UWP

* Update Xamarin.CommunityToolkit.csproj

* Update Xamarin.CommunityToolkit.csproj

* Fixed get Activity property

* Update PlatformBarStyle.android.cs

* Remove NavigationBar bits

* Make SetStatusBarColor available on API 23+

* Make StatusBar white for demo app

* Rename BarStyle to Window

* Fix spaces

* Revert "Update to Android 11"

This reverts commit 656f0d05b1.

* Update Xamarin.CommunityToolkit.csproj

* Rename Window to WindowEffect

* Revert Android 11 API support

* Set status bar style in app.xaml

* Replaced Window with WindowEffect is other places

* Remove Detached implementation

* Add WindowEffectAndroid for navigation bar stuff

* Refactor SetBarStyle methods

* Add UWP implementation

* Add iOS implemetation (not tested)

* Use switch expression

* Add `#region` to specify Linker Work-Around

* Rename WindowEffect to StatusBarEffect

* Rename WindowEffectAndroid to PlatformNavigationBarEffect

* Fix nullability errors

* Commit to rerun tests

* Revert "Commit to rerun tests"

This reverts commit f207c74c7b.

* Add sample page

* Fix default is not applied on Android

* Fix radiobutton name on sample page

* Add android specific NavigationBar class

* Remove unneeded null checks

* Coverted StatusBarEffect to static class

* Improve description

* Update EffectIds.shared.cs

* Remove unneeded activity parameter

* Refactor StatusBar.uwp

* Setting view model in XAML

* Update NavigationBar.android.cs

* Make StatusBar style setters accessible from C#

* Add XML documentation

* Remove unrelated code

* Move constant outside the loop

* Add logs if bar style is not supported

* Remove LightContent case

* Commit to rerun build

* Revert "Commit to rerun build"

This reverts commit a49e18f50a.

* Revert "Revert "Commit to rerun build""

This reverts commit c9b3d5b647.

* Revert "Revert "Revert "Commit to rerun build"""

This reverts commit 7152b252b8.

* Change Debug to Trace

* Replace Trace with Log

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/PlatformConfiguration/AndroidSpecific/NavigationBar.shared.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/PlatformConfiguration/AndroidSpecific/NavigationBar.shared.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* Revert "Update src/CommunityToolkit/Xamarin.CommunityToolkit/PlatformConfiguration/AndroidSpecific/NavigationBar.shared.cs"

This reverts commit c56f02bf76.

* Revert "Update src/CommunityToolkit/Xamarin.CommunityToolkit/PlatformConfiguration/AndroidSpecific/NavigationBar.shared.cs"

This reverts commit 6d37b50504.

* Move enums to sepparate files

* Replace linq with methods

* Update UpdateStatusBarAppearance to support iOS 13

Co-Authored-By: Daniel Christmas <1112585+justadaniel@users.noreply.github.com>

* View controller-based status bar appearance: No

Co-Authored-By: Daniel Christmas <1112585+justadaniel@users.noreply.github.com>

* Commit to rerun tests

* Update EffectsGalleryViewModel.cs

* Move files to Effects folder

* Converted BarStyle to effects

* Update sample app

* Drop Windows Mobile support

* Get activity from control

* Update NavigationBarEffect.shared.cs

* Commit to rerun tests

* refactoring ios

* removed UWP linker hack

We don't need it for UWP since we don't have a Linker for it

* Removed not needed properties

* Remove not needed null checks

* Remove using

* Commit to rerun tests

* Moved NavigationBarEffect to use the platformspecific API

* Updated the sample

* Fix test

* Little better styling

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Daniel Christmas <1112585+justadaniel@users.noreply.github.com>
Co-authored-by: Gerald Versluis <gerald@verslu.is>

* Drawing view fixes (#1459)

* Set default line LineColor as black, Fix ClearOnFinish

* Fix SmoothPath issue, update macOS renderer, update sample

* Fix tizen build

* Snackbar corner radius (#1437)

* Snackbar/Toast CornerRadius

* iOS, macOS

* UWP

* WPF

* Update sample, add NativeSnackBar.ios.macos.cs

* Fix ios, macos corner radius

* Update default corner radius to 4

```xml
 <shape android:shape="rectangle"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#323232"/>
    <corners android:radius="4dp"/>
</shape>
```

* Set CornerRadius to 10

* Set CornerRadius to 10

* Use default Corner Radius if not specified

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* Added missing using System (#1483)

* [MacOS] Added MediaElement implementation (#1488)

Co-authored-by: Yuriy Holembyovskyy <yuriy.holembyovskyy@gmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* Drawing view multi line (#1475)

* DrawingView MultiLine

WPF, UWP

* Android

* GTK, Tizen

* iOS, macOS

* DrawingViewService Get Stream from lines

* added missing System using

* Add GetImageStream

* Fix tests

* Add description to switches

* Styling and comments

* DrawingLineCompletedEventArgs

* Add summary, Add tests

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
Co-authored-by: Gerald Versluis <gerald@verslu.is>

* [Bug] Fixed CameraView Linker issue (#1503)

* Fixed CameraView linker issue

* Added Preserve Conditional

* Added test case

Co-authored-by: Gustavo Oliveira <gustavo.oliveira@inspectrealestate.com.au>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* [iOS | Android] TextSwitcher + [iOS] ImageSwitcher (#1422)

* Added text switcher

* Added text switcher sample

* Address comments

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Views/ViewSwitcher/TextSwitcherRenderer.android.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Views/ViewSwitcher/TextSwitcherRenderer.android.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* address comment

* fixed build

* fixed typo

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Views/ViewSwitcher/TextSwitcherRenderer.android.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* cached sdk int

* Fixed warnings

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* iOS, macOS - Clean DrawingView on Lines clean (#1520)

* [Bug] Fixed CameraView crash on FlashMode Torch (#1522)

* Update FormsCameraView.ios.cs

Fixed CameraView crashing in Torch FlashMode

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Views/CameraView/iOS/FormsCameraView.ios.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>

* Consolidate our XCT platform class (#1559)

* Moved and renamed ToolkitPlatform to XCT inside helpers folder

* replaced all SDK version calls to XCT cached one

* removed unecessary space

* Added a cache to the iOS version

* [Bug] Fixed CameraView Shutter not responding (#1535)

* Fixed CameraView Shutter not responding

* Fixed Merge conflict

* Update FormsCameraView.ios.cs

Removed unnecessary code

* Update FormsCameraView.ios.cs

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Gerald Versluis <gerald@verslu.is>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* Added Speed Property to mediaelement (#1570)

* Added Speed control for MediaElement in iOS and Android

* Added Update Speed inside Play Method so after pausing and playing speed will be remembered

* Added Sample for speed

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Views/MediaElement/Android/MediaElementRenderer.android.cs

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Views/MediaElement/Android/MediaElementRenderer.android.cs

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>

* Changed Speed Property binding mode to oneway and removed un necessary property Speed from IMediaElementController

* Added Speed control for MediaElement in iOS and Android

* Changed Speed Property binding mode to oneway and removed un necessary property Speed from IMediaElementController

Co-authored-by: Aswin P G <aswinpg@outlook.in>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>

* Utc to local string converter (#1555)

* Added UtcDateTimeToLocalStringConverter with page to test.

* Tests class added

* Refactored Tests

* Added some additional tests

* Added new converter to the Converters gallery

* Minor fixes

* Code tidy.

* Some passing test.

* Resolves Error CS8625.

* All tests passing

* Suggest changes including:
Moved BindableProperty to top of class.
IsValidDateFormat uses DateTime.TryParse rather then DateTime.Parse.
Removed is string type check for DateTimeFormat.

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Converters/UtcDateTimeToLocalStringConverter.shared.cs

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Converters/UtcDateTimeToLocalStringConverter.shared.cs

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Converters/UtcDateTimeToLocalStringConverter.shared.cs

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Converters/UtcDateTimeToLocalStringConverter.shared.cs

* removed private from method

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* Update RangeSlider.shared.cs (#1545)

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* Removed unused code (#1586)

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* [Enhancement][Converter] Add Expression property to MathExpressionConverter and MultiMathExpressionConverter (#1609)

* Added Expression parameter

* Fixed Expression property declaration

* Updated sample page

* Added Tests

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* [Bug] [XCT.Sample] Fixed ContentPages BackgroundColor (#1595)

* Removed SetAppThemeColor

* Move `BasePage` to `Pages` folder

* Handle Null Dereferences introduced in .NET 6

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>

* CornerRadiusEffect (#1316)

* CornerRadiusEffect added

* cosmetics

* Safe corner radius value impl

* nullable fix

* reduce to one linq call

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* Effect replaced by event subscription

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Effects/CornerRadius/CornerRadiusEffect.shared.cs

* C#9 cleanup

* removed extra )

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Effects/CornerRadius/CornerRadiusEffect.shared.cs

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>

* Update dotnet-format-daily.yml

* MauiCompat Fix for preview 12 (#1792)

* Fix for preview 12

* Allow Prerelease of .NET 6

* Add `--include-previews` to Install .NET MAUI Workload

* Specify .NET v6.0.2

* Install Nightly .NET Build

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* dotnet install with script

* Update azure-pipelines.yml

* install using script

* Update azure-pipelines.yml

* set version

* remove dir

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>

* Match Visual Studio 2022 .NET 6.0.2 Preview Version

* Update azure-pipelines.yml

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Gerald Versluis <gerald@verslu.is>
Co-authored-by: Andrew Hoefling <andrewh@fileonq.com>
Co-authored-by: Gustavo Oliveira <gu.ol@hotmail.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
Co-authored-by: Vladislav Antonyuk <33021114+VladislavAntonyuk@users.noreply.github.com>
Co-authored-by: Vladislav Antonyuk <vlad.antonyuk@outlook.com>
Co-authored-by: Maksym Koshovyi <maximkoshevoi61@gmail.com>
Co-authored-by: Daniel Christmas <1112585+justadaniel@users.noreply.github.com>
Co-authored-by: Yuriy Holembyovskyy <yholembyovskyy@gmail.com>
Co-authored-by: Yuriy Holembyovskyy <yuriy.holembyovskyy@gmail.com>
Co-authored-by: Gustavo Oliveira <gustavo.oliveira@inspectrealestate.com.au>
Co-authored-by: Aswin P G <aswinpg@outlook.in>
Co-authored-by: Leonard <leojharris@hotmail.com>
Co-authored-by: Yann Zahringer Ferrando <YZahringer@users.noreply.github.com>
2022-01-21 15:08:36 -08:00
Maxime Esprit 16928fdc1d
Added CornerRadius bindable property (#1732)
* Added CornerRadius bindable property

* Add sample and bugfix

* Use float

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Gerald Versluis <gerald@verslu.is>
Co-authored-by: Vladislav Antonyuk <vlad.antonyuk@gmail.com>
2022-01-19 20:13:36 +02:00
Rachel Kang a4557b74ca
[Android] Fix a11y set semantic focus (#1782)
* Add SemanticExtensions SetFocus and Announce

* Add Windows Announce implementation

* Update based on feedback

* Fix SetSemanticFocus for Android

* Revert order of usings to clean up diff

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2022-01-11 10:30:00 +01:00
Thomas Stocker 4b28658859
Update Xamarin.CommunityToolkit.csproj (#1684) 2022-01-11 09:09:22 +00:00
Vladislav Antonyuk bb147a47ba
1777 Snackbar button is missed (#1783) 2022-01-08 18:51:14 +00:00
github-actions[bot] 4685a4da79
Automated dotnet-format update (#1779)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-01-08 19:06:48 +02:00
Axemasta 000acd0f81
Fixed camera preview size for Xiaomi Note 7 (#1780)
Further investigation required but the xiaomi has no "optimal sizes" for preview and is attempting to set the preview size to 4224x3136, which as a guess I would say is a raw resolution not accounting the dpi
2022-01-04 21:51:28 +00:00
Hannes Klose ccf782c98d
Fixed drawing outside of DrawingView control (#1680)
* Fixed drawing outside of DrawingView control

* NormalizePoints

* Fix Samples

* Remove Null Forgiving Operator, `!`

* Fix warnings

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Vladislav Antonyuk <vlad.antonyuk@gmail.com>
Co-authored-by: Vladislav Antonyuk <33021114+VladislavAntonyuk@users.noreply.github.com>
2021-12-31 02:12:30 +00:00
Pedro Jesus e981bea8ca
Adding Source Generator (#1714)
* Added Source Generator project

* Configure Source Generator project

* Make sure that we will use it just in NETSTANDARD1_0

* removed old build and csproj clean up

* fixed sample app

* added SG dll into Libs folder

* Added SourceGenerator project in all solutions

* Reference the SG dll

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
2021-12-31 01:55:37 +00:00
Vladislav Antonyuk 9716d9422b
Automate MauiCompat build, Update MAUI Preview 11 (#1775)
* Automate MauiCompat build, Update MAUI Preview 11

* Run script if MauiCompat project doesn't exist
2021-12-30 17:41:36 -08:00
github-actions[bot] 0db5b19255
Automated dotnet-format update (#1757)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-12-27 18:00:03 +02:00
Dmytro Bondarenko 7466780536
Fix for [iOS] Unable to chain display Popup calls or to display two popup simultaneously #1761 (#1765)
* added main fix for #1761

* added ui not-a-test for #1761

* #1761 test improved
2021-12-22 11:05:02 -03:00
Vladislav Antonyuk 7443f054e5
Fix NullReferenceException thrown in PopupRenderer.SetViewController (#1762)
* NullReferenceException thrown in PopupRenderer.SetViewController when using in embedded forms scenario

* remove Null Forgiving Operator

* Fix Null Forgiving Operator

* Fix Null Forgiving Operator
2021-12-20 10:47:38 -08:00
Andrei 999f86be2b
Update TouchEffect.shared.cs (#1767) 2021-12-19 19:59:59 -03:00
Rachel Kang 9e3ee43b2b
Implement SetSemanticFocus and Announce APIs (#1727)
* Add SemanticExtensions SetFocus and Announce

* Add Windows Announce implementation

* Update based on feedback

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
2021-12-16 20:19:50 +01:00
Maksym Koshovyi 48a287ac63
Update MauiCompat.sh (#1737)
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
2021-12-15 23:15:21 +02:00
Countryen 35d7d5f762
Bugfix Issue #1705 (MAUI: 184): Allow null handling for BaseConverterOneWay<TFrom, TTo> (#1733)
* Fix typo ArgumenException for unit tests

* Add AllowsNullOrDefault handling for BaseConverterOneWay
Fix summary xml doc for ConvertBack of BaseConverterOneWay

* Add BaseConverterOneWay_Tests for new AllowsNullOrDefault

* Implement recommended changes
- Rename test converter to MockConverterOneWay
- Change ArgumentException to ArgumentNullException in BaseConverterOneWay<TFrom, TTo> when disallowing nulls
- Simplify unit test data generation and execution

* Update null check in BaseConverterOneWay<TFrom, TTo>

* Implement recommended changes

- Change check order back to original in BaseConverterOneWay<TFrom, TTo>
- Fix missing first paramName argument for ArgumentNullException in BaseConverterOneWay<TFrom, TTo>
- Refactor BaseConverterOneWay_Tests

* Rename property AllowsNullOrDefault to AllowsNull of BaseConverterOneWay<TFrom, TTo>

* Update IsNullOrEmptyConverter to inherit from BaseConverterOneWay<TFrom, TTo>

* Migrated more converters to base

* Revert compare converter changes

* Fixed unit tests and code review tidy up

* Switch to separate nullable converter base class

* Add null support to BaseConverter

NullableBaseConverter now completes symmetry with NullableBaseConverterOneWay.

Migrate converters to use NullableBaseConverter where possible.

Migrate tests to new approach.

* Remove Null-Forgiving Operator

* Rename converters to start with Base

* Code review improvement

* Add global.json

Ensures .NET 6.0 is the minimum version in use

* `dotnet format`

* Move global.json to root folder

* `dotnet format`

Co-authored-by: Pascal Ried <p.ried@comventure.de>
Co-authored-by: Shaun Lawrence <shaunrlawrence@gmail.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2021-12-03 14:37:41 +00:00
Shaun Lawrence cbf4a19dc7
Move down the list and make title consist with maui repo (#1752) 2021-12-01 11:04:25 +01:00
Shaun Lawrence 8b7f43a440
Add specific MauiCompat issue template (#1749) 2021-11-30 22:20:00 +00:00
rxDietel 52a260c414
[Bug] [Fixed] #1712 (#1713) 2021-11-25 23:13:20 +01:00
Shaun Lawrence fc0080ea2b
Fixed typos (#1730)
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
2021-11-25 20:47:23 +00:00
Maksym Koshovyi fe2aeb2ebb
Fix DisplaySnackBarAsync Task never completes if another SnackBar appears, and completes before SnackBar action (#1357)
* Update SnackBar.android.cs

* Fix #1340

* Pass exception into result

* Fix build

* Add test

* Use tabs

* Extract OnActionClick method

* Update SnackBar.tizen.cs

* Update ToastOptions.shared.cs

Make SetResult and SetException internal

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Vladislav Antonyuk <33021114+VladislavAntonyuk@users.noreply.github.com>
Co-authored-by: Vladislav Antonyuk <vlad.antonyuk@gmail.com>
2021-11-25 12:52:14 +00:00
Vladislav Antonyuk f3f1a80dbf
Update MauiCompatSteps, MauiCompat script (#1683)
* Update MauiCompatSteps, MauiCompat script

* Update MauiCompat.sh

* Update MauiCompatSteps.md

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2021-11-25 07:04:17 +01:00
Rachel Kang 08d64b70d4
Fix NRE (#1728) 2021-11-24 09:23:35 +01:00
Gerald Versluis 5719964162
Update azure-pipelines.yml 2021-11-16 11:53:44 +01:00
Gerald Versluis 382f8faa9c
Update azure-pipelines.yml 2021-11-16 11:15:09 +01:00
github-actions[bot] 94eff1dd13
Automated dotnet-format update (#1718)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-11-12 10:31:07 -08:00
Ronny Rosvold 2b1c7a10a3
Tabindicator should be correct width and correct position. #980 #947 (#1223)
Co-authored-by: Ronny R <ronny@source.no>
2021-11-11 10:30:39 -08:00
Gustavo Oliveira f86670834f
[Bug] [XCT.Sample] Fixed ContentPages BackgroundColor (#1595)
* Removed SetAppThemeColor

* Move `BasePage` to `Pages` folder

* Handle Null Dereferences introduced in .NET 6

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2021-11-10 17:47:31 -08:00
Thomas Stocker 529b72dbb1
Fixing Popup Uwp Release Compilation Crash (#1303)
* Fixing Popup Uwp Release Compilation Crash

* Update NavigationExtensions.uwp.cs

Simplyfy workaround

* revert change

* Set Renderer in Create Renderer

* Update src/CommunityToolkit/Xamarin.CommunityToolkit/Extensions/Navigation/NavigationExtensions.uwp.cs

* fixed build

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2021-11-10 17:34:50 -08:00
github-actions[bot] 2c267757be
Automated dotnet-format update (#1698)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-11-03 16:19:33 +01:00
kyletran407 27dcf50150
The validationTokenSource should be set to null right after ValidateAsync is called. Otherwise, if the token is canceled (token.IsCancellationRequested is true) and therefore validationTokenSource is not set to null, next call to ResetValidationTokenSource will crash at line validationTokenSource?.Cancel() because validationTokenSource object is already disposed (see the using statement that creates the token). (#1694)
Co-authored-by: Kyle Tran <Kyle.Tran@sonichealthcare.com.au>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2021-11-02 10:24:43 +01:00
Vladislav Antonyuk 5c2d6897b1
Fix build, Fix snackbar action button color on android, fix ios action button font (#1673)
* Fix snackbar action button color on android, fix ios action button font title

* fix nullable error

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2021-11-02 09:02:00 +00:00
Pedro Jesus f6a3553acd
Pre Built Animations (#1667)
* Add tada animation (#1468)

* Base class implementation for pre-built animations

* TADA! Added the first animation

* Max and Min scales for Tada

* Added the RubberBand animation

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* Feature/animation samples (#1527)

* Initial attempt at an Animations sample section

* Move all responsibility to AnimationTypes

* Code tidy up

* changed the null and empty verification to be more performant

* Inverted `if` to make the code more readable

* An attempt at async with cancellation

* Remove the need for Task.Delay

* Removed the Type suffix

* Code tidy up and xml docs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* Consolidate AnimationViewModel, Remove Unnecessary Nullables

* TaskExtensions tidy up

* AnimationWrapper tidy up

Remove default parameters

* Rename to CompoundAnimationBase

* Unit tests added around animations

* Reversed the >= check to keep the constant on the right

* Switched to TimeSpan

* Disabled/removed inconsistent tests

* No longer share a ticker instance

* Clear PlatformServices after each animation test

* Code tidy up

* Remove the inconsistent asserts

* Further test ticker changes

- only use AsyncTicker when really needed.
- extra protection around enabling
- set and clear default ticker before/after each test

* Add Missing Asserts

* Update Unit Test NuGet Packages

* Update for Nullable

Co-authored-by: Shaun Lawrence <shaunrlawrence@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2021-11-02 02:11:32 +00:00
Federico Benedetti 6f9832cf54
Remove iOS default padding (#1653) (#1668)
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2021-10-29 13:35:05 +02:00
Gustavo Oliveira 05e54fb634
Fixed CameraView Video Orientation (#1583)
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2021-10-29 10:26:09 +01:00
github-actions[bot] db37df1167
Automated dotnet-format update (#1688)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2021-10-29 08:48:38 +00:00
Shaun Lawrence e7031afddc
Update status bar size when rotating (#1639)
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2021-10-29 08:19:45 +00:00
Vladislav Antonyuk 9a10b8fd62
#1652 Fix gesture lines are not cleared, fix build (#1676)
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2021-10-28 12:12:42 +02:00
Andrei 42437be462
Reset shadow if corner radius is changed (iOS & UWP) (#1649)
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
2021-10-26 23:05:43 +02:00