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

604 Коммитов

Автор SHA1 Сообщение Дата
Brandon Minnick c396216a11 Remove `BaseTemplatedView`, Add `RatingViewDefaults` 2024-04-27 14:42:15 -07:00
Eliezer BWANA 972766af16 adding units tests and change parent control from border to grid 2024-04-22 15:01:51 +02:00
Brandon Minnick cdcba3d0b6
Merge branch 'main' into rating-view 2024-03-25 17:33:50 -07:00
Brandon Minnick 154d9fbacc
[Housekeeping] Update NuGet Packages (#1775)
* Update NuGet Packages

* Update azure-pipelines.yml
2024-03-25 16:59:18 -07:00
Kenji Nagano 460bf72dfa
Fix an issue with Popup size and position on Android (#1683)
* Fix an issue with Popup size and position on Android

* Update Formatting

* `dotnet format`

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Shaun Lawrence <shaunrlawrence@gmail.com>
2024-03-25 23:40:37 +00:00
Kenji Nagano 7a144db508
Add popup size update on iOS (#1653)
Add popup size update

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Shaun Lawrence <shaunrlawrence@gmail.com>
2024-03-25 23:22:54 +00:00
Kenji Nagano 5684eb7861
Change to display Popup on Active Window page on Windows (#1617)
* Change to display Popup on Active Window page on Windows

* Add consideration when there is no active window

* Removing null-forgiving and cutting out to a single method

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Shaun Lawrence <shaunrlawrence@gmail.com>
2024-03-25 16:06:56 -07:00
Brandon Minnick fd6d452282
Increase to latest MauiPackageVersion, v8.0.14 (#1774)
* Update Directory.Build.props

* Increase to 8.0.203
2024-03-25 15:55:03 -07:00
Kenji Nagano c4074c593e
Remove popup shadow on iOS 17 (#1615)
* Remove popup shadow on iOS 17

* Change how shadows are removed and overlays are displayed

* Remove null-forgiving operator

* Update formatting

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2024-03-25 15:49:17 -07:00
Gerald Versluis 227e4ef115
Also update Maps NuGet version number for PR builds (#1772) 2024-03-25 14:52:19 -07:00
Gerald Versluis ee03326ab4
Not use UseMauiMaps (#1771)
* Not use UseMauiMaps

* Update AppHostBuilderExtensions.shared.cs
2024-03-22 16:51:26 +01: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
Brandon Minnick 3e45f88d18
Update to `PublishCodeCoverageResults@2` 2024-03-16 16:52:16 -07:00
github-actions[bot] fa4b1c5eb9
[housekeeping] Automated PR to fix formatting errors (#1754)
Automated dotnet-format update

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-15 00:23:48 +00:00
Vladislav Antonyuk 00712e1cd1
SpeechRecognition Add more categories for AudioSession #1645 (#1741) 2024-03-14 22:59:59 +00:00
James Crutchley 7aeeaed6a0
Fix Media Element Transport controls visibility (#1747)
* The most significant changes in the code are related to the `Visibility` and `Width` properties of the `buttonContainer` in the `MauiMediaElement` constructor and the addition of a new conditional statement in the `OnMediaPlayerElementPointerMoved` method.

1. In the `MauiMediaElement` constructor, we added setting of the `Visibility`. Now, the `Visibility` property is set to `Collapsed` in the constructor.

2. A new conditional statement has been added to the `OnMediaPlayerElementPointerMoved` method. If the `Visibility` property of `mediaPlayerElement.TransportControls` is `Collapsed`, the `Visibility` property of `buttonContainer` is also set to `Collapsed` and the method returns early. This behavior was not present in the previous version of the method.

References to the code changes:
- `MauiMediaElement` constructor: [Link to the code change]
- `OnMediaPlayerElementPointerMoved` method: [Link to the code change]

* The most significant changes in the code are related to the visibility of `buttonContainer` and the event handler for `mediaPlayerElement.PointerMoved`. The visibility of `buttonContainer` is now set to match the visibility of `mediaPlayerElement.TransportControls` in both the constructor `MauiMediaElement(MediaPlayerElement mediaPlayerElement)` and the method `OnMediaPlayerElementPointerMoved`. If the visibility of `mediaPlayerElement.TransportControls` is collapsed, the method `OnMediaPlayerElementPointerMoved` no longer sets the visibility of `buttonContainer` to collapsed but simply returns. The event handler for `mediaPlayerElement.PointerMoved` is now removed after the first pointer move event. Lastly, the visibility of `buttonContainer` is set to visible after a delay of 5 seconds.

List of changes:

1. The visibility of `buttonContainer` in the constructor `MauiMediaElement(MediaPlayerElement mediaPlayerElement)` is now set to the visibility of `mediaPlayerElement.TransportControls` instead of being always collapsed. (Code Change 1)

2. In the method `OnMediaPlayerElementPointerMoved`, the visibility of `buttonContainer` is also set to the visibility of `mediaPlayerElement.TransportControls`. (Code Change 2)

3. If the visibility of `mediaPlayerElement.TransportControls` is collapsed, the method `OnMediaPlayerElementPointerMoved` no longer sets the visibility of `buttonContainer` to collapsed but simply returns. (Code Change 3)

4. The event handler for `mediaPlayerElement.PointerMoved` is removed after the first pointer move event. (Code Change 4)

5. The visibility of `buttonContainer` is set to visible after a delay of 5 seconds. (Code Change 5)

* Update src/CommunityToolkit.Maui.MediaElement/Views/MauiMediaElement.windows.cs

Co-authored-by: Gerald Versluis <gerald@verslu.is>

---------

Co-authored-by: Gerald Versluis <gerald@verslu.is>
2024-03-13 14:25:17 -07:00
Vladislav Antonyuk 8cecb5eb0a
Close Stream #1588 (#1751) 2024-03-13 08:25:42 -07:00
Brandon Minnick 2ca44e3a23
Update azure-pipelines.yml 2024-03-12 16:07:13 -07:00
James Crutchley bdcc01f657
Fix Media Element Button Visibility (#1743)
The most significant changes involve the `CommunityToolkit.Maui.MediaElement.csproj` file and the `fullscreen.svg` image. The `.csproj` file has been updated to include a new `MauiImage` item that points to the `fullscreen.svg` image. This image is included in the build and packaging process. Additionally, references to `Microsoft.Maui.Controls` and `Microsoft.Maui.Controls.Compatibility` have been added. The `fullscreen.svg` image was temporarily removed and then added back, possibly due to an update or version control operation. A new `.targets` file has been created that includes the `fullscreen.svg` image. Lastly, an `ItemGroup` that included the `fullscreen.svg` image was removed from the `.csproj` file, likely as a cleanup operation after moving the image inclusion to the `.targets` file.

List of changes:
1. `CommunityToolkit.Maui.MediaElement.csproj` file updated to include a new `MauiImage` item pointing to `fullscreen.svg` image and references to `Microsoft.Maui.Controls` and `Microsoft.Maui.Controls.Compatibility` added.
2. `fullscreen.svg` image temporarily removed and then added back.
3. New `CommunityToolkit.Maui.MediaElement.targets` file created that includes the `fullscreen.svg` image.
4. `ItemGroup` that included the `fullscreen.svg` image removed from `CommunityToolkit.Maui.MediaElement.csproj` file.
2024-03-11 20:13:09 +01:00
marco-skizza af42a4bab7
Fixes #1702: Fixed Memory Leak in MediaElement (#1736)
Co-authored-by: Marco Finschi <Marco.Finschi@lu.ch>
2024-03-07 21:11:53 +00:00
Victor Hugo Garcia Hernandez 6ee642cd6f
Media Element Full Screen Support for Android and Windows (#1692) 2024-03-06 06:45:49 +00:00
Brandon Minnick 1c493f75b5
Merge branch 'main' into rating-view 2024-03-05 18:37:06 -08: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
github-actions[bot] 8df2c9f5a4
[housekeeping] Automated PR to fix formatting errors (#1714)
Automated dotnet-format update

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-25 16:23:29 -08: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
github-actions[bot] 7611c28afe
[housekeeping] Automated PR to fix formatting errors (#1701) 2024-02-24 16:24:25 -08:00
Brandon Minnick e6c12b1a4e
Merge branch 'main' into rating-view 2024-02-24 14:17:42 -08:00
Brandon Minnick ee9fff4810 `dotnet format` 2024-02-24 14:14:50 -08: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
Brandon Minnick 6bc3e08fa7 Fix null reference exceptions 2024-02-24 13:17:58 -08:00
Brandon Minnick e904ceb592
Apply suggestions from code review 2024-02-24 13:14:56 -08:00
Brandon Minnick f29fc56bad
Apply code review suggestions
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
2024-02-24 12:58:12 -08:00
Brandon Minnick f414bd0d74
Merge branch 'main' into rating-view 2024-02-22 18:00:49 -08:00
Eliezer BWANA 683e670e6c Clean code 2024-02-22 16:13:10 +02:00
Eliezer BWANA 0730696bb4 control initial implementation 2024-02-22 15:13:28 +02:00
github-actions[bot] 77840439e7
[housekeeping] Automated PR to fix formatting errors (#1696)
* Automated dotnet-format update

* Revert "Automated dotnet-format update"

This reverts commit 5ce323c597.

* `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-19 11:33:56 -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
Kenji Nagano c6654f385d
Add Popup disposed check on Android (#1614)
* Add disposed check

* Changes to additional guard conditions

* Add popup binding release

* Update Popup.shared.cs

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2024-02-17 22:13:23 +00:00
Bret Johnson 9628467833
Fix Hot Reload with Popup (#1635)
* Fix Hot Reload with Popup

Call AddLogicalChild/RemoveLogicalChild when the popup is
shown/closed so that popups are included in the logical (and visual)
tree, so that Hot Reload works for them. The Live Visual Tree VS
UI now shows popup content as well.

Fixes https://github.com/CommunityToolkit/Maui/issues/620

As Shane explained to me, the rule as of MAUI in .NET8 is that
whenenever Parent is set on an Element, AddLogicalChild should
also be called to include the element in the logical children.
RemoveLogicalChild should be called when the Parent is set to null.
This may be more automatic in .NET9, but for .NET8 that's what's needed
so that the logical tree is kept up to date.

* Remove setting the Parent as that's not needed

Shane pointed out that Add/RemoveLogicalChild also updates the parent,
so there's no need for our code to do that as well.

* Protect against NREs for all calls to AddLogicalChild

---------

Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
2024-02-17 21:48:12 +00:00
Brandon Minnick 3c26964b45
Increase `Microsoft.Maui.*` Dependencies to v8.0.7 (#1699)
* Update Directory.Build.props

* Update azure-pipelines.yml

* Revert "Update azure-pipelines.yml"

This reverts commit baf7b88185.

* Update azure-pipelines.yml

* Update azure-pipelines.yml
2024-02-17 13:30:26 -08:00
StevilKnevil a2b6a2d4f6
Fixed issue with tinted image size being set incorrectly on Windows. (#1685)
* Fixed issue with tinted image size being set incorrectly.

* Removed commented out code

* Removed unnecessary variable

* Added caching for the blank image

* Ensured that image tint can be removed correctly

* ised "is" not "==" for null comparison

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

* Update naming

---------

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
2024-02-17 20:08:48 +00:00
eduardoagr 26aa5aadae
Modify ColorConverters to support two-way bindings (#1544) 2024-02-16 07:29:52 +00: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
Marioo1357 cc62c6f7e1
Memory leak on TintedImageBehavior fix (#1625) 2024-02-14 22:47:03 +00:00
Pedro Jesus de4eecca9f
🔥 FIX - fix unit tests (#1694)
pin Compatibility package to match Maui.Controls
2024-02-14 21:28:31 +00:00