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

250 Коммитов

Автор SHA1 Сообщение Дата
Brandon Minnick 154d9fbacc
[Housekeeping] Update NuGet Packages (#1775)
* Update NuGet Packages

* Update azure-pipelines.yml
2024-03-25 16:59:18 -07:00
github-actions[bot] ad2a29bbe5
[housekeeping] Automated PR to fix formatting errors (#1763)
Automated dotnet-format update

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-19 00:27:39 +00:00
github-actions[bot] 07cdc40618
[housekeeping] Automated PR to fix formatting errors (#1759) 2024-03-18 00:22:45 +00:00
Vladislav Antonyuk bd3f252811
FileSaver Progress (#1740) 2024-03-17 23:37:44 +02:00
Victor Hugo Garcia Hernandez 6ee642cd6f
Media Element Full Screen Support for Android and Windows (#1692) 2024-03-06 06:45:49 +00:00
Shaun Lawrence 739c843b8d
Remove the old code to set the status bar behavior values (#1713)
Co-authored-by: Shaun Lawrence <17139988+bijington@users.noreply.github.com>
Co-authored-by: Gerald Versluis <gerald@verslu.is>
2024-02-26 13:44:12 +01:00
Mikael Nensén 9d3e2fb103
Updated StatusBarBehavior to use the NavigatedTo event (#1471)
* Updated StatusBarBehavior to use the NavigatedTo event for setting the color and style and updated the Sample app.

* Added fact to verify expected exception on NavigatedTo event.

* Update src/CommunityToolkit.Maui.UnitTests/Behaviors/StatusBarBehaviorTests.cs

It wasn't inside the if before so forgot to remove it after wrapping it :)

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

* Removed unit test I do not know how to trigger OnAttachedTo without using reflection.

* Added enum StatusBarApplyOn to control when the StatusBarBehavior applies its configured color and style.

* Updated sample to use the new enum

---------

Co-authored-by: Mikael Nensén <mikael.nensen@datema.se>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Shaun Lawrence <shaunrlawrence@gmail.com>
2024-02-25 13:51:54 +00:00
Brandon Minnick b865c9be57 Remove public class `AndroidSystemExtensions` and implement `Lazy` initialization; Move `NavigationBarStyle` to `CommunityToolkit.Maui.Core`; 2024-02-24 14:05:09 -08:00
Vladislav Antonyuk 3cda1bd904
Windows Snackbar rewrite (#1658)
* Windows Snackbar rewrite

Replaces ToastNotification with AppNotificationManager. Fixes Snackbar and Toast execute new instance of the app

* reverted to use maui-package-name-placeholder

* Update Xcode version for net8.0-maccatalyst

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Gerald Versluis <gerald@verslu.is>
2024-02-19 18:35:43 +02:00
James Crutchley 4f14865ec6
Fix IOS bug in media Element when using Popup (#1597)
* Fix IOS bug in media Element when using Popup

* removed unused usings

* Remove accidental IOS build info

* remove extra line added by mistake

* Add Popup Media Element

* Fix Xaml layout

* more xaml fixes

* Rework Shell detection and get Current ViewController

* Update view controller logic to fix Navigation Page CTD

* Remove unused variables and method logic

* Fix for CollectionViewController

* revert breaking changes and mark ctor as [Obsolete]

* Hides the Obsolete ctor from showing up

* Update to fix breaking changes

* fix missing close bracket

---------

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
2024-02-15 19:55:44 -03:00
James Crutchley 9c83cd4b11
Add missing Handler disconnect on Unloaded event (#1691)
* Add missing Handler disconnect on Unloaded event

* Update MediaElementPage.xaml

---------

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2024-02-15 21:50:18 +00:00
github-actions[bot] 97440ccd93
[housekeeping] Automated PR to fix formatting errors (#1563)
* Automated dotnet-format update

* Revert "Automated dotnet-format update"

This reverts commit 8eff768f01.

* `dotnet format`

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2024-02-16 08:32:24 +11:00
Pedro Jesus f4f80337da
[First - PlatformSpecific] NavigationBar for Android (#1678)
* refactor code to be used across packages

* implemented NavigationBar feature for Android

* register the mappers

* code cleanup

* inline docs and code cleanup

* create sample page

* add sample page into the mix

* use page instead of cast

Co-authored-by: Vladislav Antonyuk <33021114+VladislavAntonyuk@users.noreply.github.com>

* code review

---------

Co-authored-by: Vladislav Antonyuk <33021114+VladislavAntonyuk@users.noreply.github.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2024-02-15 13:54:12 +01:00
Pedro Jesus de4eecca9f
🔥 FIX - fix unit tests (#1694)
pin Compatibility package to match Maui.Controls
2024-02-14 21:28:31 +00:00
Victor Hugo Garcia Hernandez 666f0e97ce
Avatar sample updated to include badges (#1636) 2024-02-02 13:07:34 +00:00
Brandon Minnick 11e7122cd3
[Sample App] Add Microsoft.Extensions.Http.Resilience (#1643)
Add Microsoft.Extensions.Http.Resilience
2024-01-14 02:52:51 +00:00
Victor Hugo Garcia Hernandez 45ca10c72e
Removes the transparent color set on Android when null (#1584)
* Removed the transparent color that was being set on Android when the icon tint color is set to null.

* Add `null` Color to IconTintColorBehavior in Sample App

* Update Sample

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2023-11-30 19:20:05 +00:00
James Crutchley 4168e5ab54
Fix Media Element crash in IOS with Sample app (#1568)
* remove Unloaded event
Add OnDissapearing Override

* Change to OnNavigatedFrom

---------

Co-authored-by: Gerald Versluis <gerald@verslu.is>
2023-11-30 07:30:05 +01:00
Shaun Lawrence f689af3e85
Add sample to trigger an animation using the AnimateCommand (#1577) 2023-11-29 07:01:26 +00:00
James Crutchley a7944c1cff
Change HLS URL (#1571) 2023-11-27 15:23:33 +01:00
dependabot[bot] c5daa10307
Bump CommunityToolkit.Maui.Markup from 3.3.1 to 4.0.0 in /samples (#1528)
Bumps [CommunityToolkit.Maui.Markup](https://github.com/communitytoolkit/Maui.Markup) from 3.3.1 to 4.0.0.
- [Release notes](https://github.com/communitytoolkit/Maui.Markup/releases)
- [Commits](https://github.com/communitytoolkit/Maui.Markup/compare/3.3.1...4.0.0)

---
updated-dependencies:
- dependency-name: CommunityToolkit.Maui.Markup
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 18:03:04 +00:00
dependabot[bot] d00c4a077f
Bump Microsoft.Extensions.Http.Polly from 8.0.0-rc.2.23480.2 to 8.0.0 in /samples (#1519)
Bump Microsoft.Extensions.Http.Polly in /samples

Bumps [Microsoft.Extensions.Http.Polly](https://github.com/dotnet/aspnetcore) from 8.0.0-rc.2.23480.2 to 8.0.0.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v8.0.0-rc.2.23480.2...v8.0.0)

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Http.Polly
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 18:29:52 +00:00
dependabot[bot] aaf565c20b
Bump Microsoft.Extensions.Logging.Debug from 8.0.0-rc.2.23479.6 to 8.0.0 in /samples (#1518)
Bump Microsoft.Extensions.Logging.Debug in /samples

Bumps [Microsoft.Extensions.Logging.Debug](https://github.com/dotnet/runtime) from 8.0.0-rc.2.23479.6 to 8.0.0.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](https://github.com/dotnet/runtime/compare/v8.0.0-rc.2.23479.6...v8.0.0)

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Logging.Debug
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 09:59:03 -08:00
Brandon Minnick 368f2ce7bc
Update to .NET 8.0 GA (#1499)
* Update to .NET 8

* Update Directory.Build.props

* Update api version on Tizen manifest

---------

Co-authored-by: Jay Cho <chojoong@gmail.com>
2023-11-14 17:23:57 +00:00
dependabot[bot] 55a7a7f791
Bump CommunityToolkit.Maui.Markup from 3.3.0 to 3.3.1 in /samples (#1517)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 10:56:02 +02:00
Brandon Minnick e72da775f6
[iOS, macOS] Fix AvAudioSession Defaults (#1513)
* Add Support for `AVAudioSession`

* Update SpeechToTextViewModel.cs

* Remove macOS AVAudioSession logic, Add `AVAudioSession.SetSupportsMultichannelContent(true, out _)`

* Add `void InitializeAvAudioSession()`
2023-11-13 10:27:37 -08:00
Brandon Minnick 339f7e3765 Update Popup Samples 2023-11-11 11:53:36 -08:00
Brandon Minnick 9bf427f5d6 Update Sample App 2023-11-10 15:39:56 -08:00
Brandon Minnick 1fce082912
Add `CancellationToken` Parameter to Methods Returning `Task` and `ValueTask` (#1503)
* Update .editorconfig

* Update DrawingViewService.windows.cs

* Add `CancellationToken` to IDrawingView, IAlert, AnimationBehavior

* Update AvatarViewGesturesPage

* Update SpeechToTextImplementation.windows.cs

* Update SpeechToTextImplementation.windows.cs

* Add CancellationToken

* Update Unit Tests

* Fix Failing Unit Tests

* Remove Duplicative `ThrowIfCancellationRequested()`

* Remove Duplicate `ThrowIfCancellationRequested()`

* Add Timeout to `async Task` Unit Tests

* Fix Unit Test Timeouts

* Update `AnimateCommand` (`ICommand` -> `Command<CancellationToken> `)

* `dotnet format`

* Fix typo

* Fix compiler bug

* Update DrawingViewService.tizen.cs

* Fix Unit Test Timeout

* Fix BaseTest Inheritance

* Refactor using TaskCompletionSource

* Add CancellationToken

* Increase `TestDuration.Short`

* Increase to TestDuration.Long

* Increase to TestDuration.Medium

* Revert to `ICommand ForceValidateCommand`

* Update ValidationBehavior.shared.cs

* Update `void SeekTo(TimeSpan)`  -> `Task SeekTo(TimeSpan, CancellationToken)`

* Implement `IDisposable` pattern

* Update `PlatformSeek()`

* Promote PlatformSeek to `Task`

* Fix Floating Point Comparison Bug

* Update Windows + Tizen MediaElement

* Update MauiMediaElement.windows.cs

* Refactor + Optimize Code

* Add CancellationToken Unit Tests for `Alerts`, `Animations` and `Behaviors`

* Add CancellationToken Unit Tests for Converters

* Ad Unit Tests for Extensions

* Add Unit Tests for Layouts

* Add CancellationToken for PopupService

* Add Views CancellationToken Unit Tests

* Add Default Value to CancellationToken Parameter on Public APIs

* Update CONTRIBUTING.md

* `dotnet format`

* `dotnet format`

* Update src/CommunityToolkit.Maui/Behaviors/AnimationBehavior.shared.cs

* Update src/CommunityToolkit.Maui/Behaviors/AnimationBehavior.shared.cs
2023-11-10 15:38:49 -08:00
Brandon Minnick 939a671446 Update Sample App for .NET 8 2023-11-07 15:24:13 -08:00
Brandon Minnick c81e55a5ea Remove `FrozenSet` from Sample ViewModels
Bindings do not yet work with `FrozenSet`
2023-11-07 14:10:27 -08:00
Brandon Minnick 78dfc83c88 Add `<VisualStateGroupList>` 2023-11-07 13:54:13 -08:00
Vladislav Antonyuk d92d3c6183
.NET 8 (#1367)
* .NET 8

* Fix tests

* .NET 8 RC1

* fix tests

* Fix build on windows

* update azure pipeline

* fix pipeline

* update release version

* Update Directory.Build.props

* Update to RC2

* Update to RC2

* Implement `FrozenSet`

* `dotnet format`

* Remove `IDrawingView.DrawingLineCompleted`

* Update FileFolderDialog.tizen.cs

* Revert `FrozenSet`

* Add `$(MauiPackageVersion)`

* Update CommunityToolkit.Maui.Sample.csproj

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2023-11-04 23:31:13 +00:00
github-actions[bot] 2305bccd74
[housekeeping] Automated PR to fix formatting errors (#1487)
Automated dotnet-format update

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-01 17:31:57 -07:00
Shaun Lawrence 2ec4be1b50
PopupService (#1165)
* Added initial PopupService implementation

* Tweaks to allowing parameters to be passed to the view model behind a popup

* Tidy up xml docs

* Some unit tests

* Only create a view model instance if the BindingContext hasn't been set

* Remove the reliance on IQueryAttributable in favour of our own interface

* A better way to find the current Page

* Readonly dictionary and some safety checking around expected BindingContext types.

* A different attempt at passing parameters without an explicit interface

* Update src/CommunityToolkit.Maui/PopupService.cs

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

* Now is a time for test

* Remove unnecessary changes

* Sample to perform a long running process

* Provide ability to close popup from within popup view model

* Prevent unnecessary instance being created

* Refactor `CurrentPage`, Add Default Constructor, Refactor `ValidateBindingContext`

* Update Unit Tests

---------

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2023-11-01 15:44:22 -07:00
Vladislav Antonyuk 9043e35b2f
Add drawing started, cancelled, and on-drawing commands (#1440)
* Add drawing started, cancelled, and on-drawing commands

This commit adds the following changes:
- Added `DrawingStartedCommand` to handle the event when drawing starts.
- Added `DrawingCancelledCommand` to handle the event when drawing is cancelled.
- Added `OnDrawingCommand` to handle the event while drawing.

These changes allow for better control and handling of the drawing events in the `DrawingViewPage.xaml` and `DrawingViewViewModel.cs`.

* Refactor drawing view event handling methods

- Renamed `DrawingStarted` to `OnDrawingStarted`
- Renamed `DrawingCancelled` to `OnDrawingCancelled`

These changes were made to improve consistency and clarity in the code.

* Rename methods

* Implement IDrawingView.OnDrawingLineCompleted

* Add `Mode=OneTime` to ICommand Bindings

* Use `is true`

* `dotnet format`

* Remove Whitespace

* Reverse IDrawingView Default Interface Method

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2023-10-31 14:16:21 -07:00
dependabot[bot] b430ba6a3e
Bump CommunityToolkit.Mvvm from 8.2.1 to 8.2.2 in /samples (#1475) 2023-10-26 05:53:51 +00:00
dependabot[bot] 73700102b5
Bump Microsoft.Extensions.Http.Polly from 7.0.12 to 7.0.13 in /samples (#1473)
Bumps [Microsoft.Extensions.Http.Polly](https://github.com/dotnet/aspnetcore) from 7.0.12 to 7.0.13.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v7.0.12...v7.0.13)

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Http.Polly
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-25 06:12:13 +00:00
Kenji Nagano 884ba0a3b4
Add consideration of FlowDirection (#1434)
* Add consideration of FlowDirection on Windows

* Add FlowDirection as an option to CustomSizeAndPositionPopupPage

* Add support for FlowDirection for Android, iOS, MacCatalyst

* Add support for Tizen

* Fix IsFillVerticalOptionSelected Radio Button Position

* Fix FlowDirection Sample Bugs

* Reuse validation method

* Upate Formatting

* Use fully-qualified namespace

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Jay Cho <chojoong@gmail.com>
2023-10-22 13:37:56 +00:00
Kenji Nagano 6d8065ccb1
Add Resources and Style to Popup (#1351) 2023-10-22 12:55:32 +02:00
dependabot[bot] 3b44cc0350
Bump Microsoft.Extensions.Http.Polly from 7.0.11 to 7.0.12 in /samples (#1449)
Bumps [Microsoft.Extensions.Http.Polly](https://github.com/dotnet/aspnetcore) from 7.0.11 to 7.0.12.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v7.0.11...v7.0.12)

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Http.Polly
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-11 11:07:18 +00:00
dependabot[bot] be2e8bec64
Bump CommunityToolkit.Maui.Markup from 3.2.0 to 3.3.0 in /samples (#1438) 2023-10-03 05:40:43 +00:00
Kenji Nagano d2ee835201
Fix Popup size on Android and iOS (#1361)
* Fix Popup size on Android

* Fix Popup size on Android

* Fix Popup size on Android

* Fix Popup size on Android and iOS

* Invert if

* Change local variable to static variable

* Fix popup position and closing

* Use pattern matching

* Change rootViewController

* Add CustomSizeAndPositionPopupPage

* Update CustomSizeAndPositionPopupPage.xaml

* Update CustomSizeAndPositionPopupPage.xaml

* Fixed MacCatalyst Popup position

* Fixed MacCatalyst Popup size

* Fix MacCatalyst Popup margin

* Fix Android popup size

* Update Formatting

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2023-09-29 19:56:45 +00:00
Victor Hugo Garcia Hernandez 7dd409e95d
Fix for the navigation to the SelectAllText page on macOS (#1402)
* Updated the StaticResource set for the border, since it was preventing to navigate to the page from macOS

* Updated the naming of a color static resource.

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2023-09-23 20:21:51 +00:00
Vladislav Antonyuk 429b205bdb
Speech Recognition v2 - StartListening/StopListening (#1382)
* Speech Recognition v2

* Fix tizen

* Fix tizen

* Fix PR comments

* Add tests

* Fix tests

* Rename `ISpeechToText.State` -> `ISpeechToText.CurrentState`

* Update Layout

* Add `ISpeechToText.StateChanged`

* Add Missing CancellationToken

* Update Sample App

* Update SpeechToTextPage.xaml

* `dotnet format`

* Add tests, update CurrentState

* Add Missing XML

* `dotnet format`

* Update Formatting

* Add Missing Cancellation Usage, Update `SpeechToTextImplementation.getRecognitionTaskCompletionSource` on macios

* Add `ResetSpeechRecognitionTaskCompletionSource()`

* Update SpeechToTextImplementation.tizen.cs

* `dotnet format`

* Dispose of `CancellationTokenRegistration`

* Add StateChanged impl on Tizen

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Jay Cho <chojoong@gmail.com>
2023-09-23 19:40:36 +00:00
dependabot[bot] eb9ecfe9c6
Bump Microsoft.Extensions.Http.Polly from 7.0.10 to 7.0.11 in /samples (#1403) 2023-09-13 06:43:58 -07:00
Victor Hugo Garcia Hernandez b70024f626
Sample icon tint color behavior inside a popup (#1395)
* Sample icon tint color behavior inside a popup

* `dotnet format`

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2023-09-08 22:21:07 +00:00
Victor Hugo Garcia Hernandez f140a3aff2
Updated the validation to allow the image button to apply the tint co… (#1386)
* Updated the validation to allow the image button to apply the tint color when the source changed.

* Remove namespace

---------

Co-authored-by: Gerald Versluis <gerald@verslu.is>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2023-09-07 18:14:55 +00:00
George Leithead 649ffbcd69
632 bug avatar view clipping on windows (#1344)
* Resolves issue on Windows where the splash screen icon is not found.

* Resolves an issue with the 'Ratings' sample for AvatarView.

* Spaces and not tabs

* Spaces and not tabs

* Changed MauiImage to point to Images folder.

* Changed splash for Windows to be Resize=False

* Typo in name of MauiImage

* Try to prevent locking.
2023-08-17 13:47:38 -07:00
Vladislav Antonyuk 930b4684b6
Code cleanup and preparation for the next release (breaking changes) (#1324)
* Code cleanup and preparation for .net 8

* Update CompareConverter.shared.cs

* Revert global.json

* More CleanUps

* Remove redundant TrySetCanceled and rely on speech recognition result

* Update Formatting

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2023-08-11 18:21:25 +00:00