KonstantinosKoumpanakis-6378 avatar image
0 Votes"
KonstantinosKoumpanakis-6378 asked KyleWang-MSFT commented

After upgrading to Xamarin 5, UWP Display Alert throws exception.

Hello everyone,

Me and my team have just migrated our cross-platform XF 4 project to XF5.
The only issue that we have encountered thus far is the following:
Our UWP App was throwing an unhandled App.Xaml exception when navigating to a different page for no apparent reason and after some search, installing the nugget Microsoft.UI.Xaml explicitly fixed that issue, even though that nugget package is supposed to be installed along with XF5 nugget.
But right now a new issue has emerged. When calling the 'await Application.Current.MainPage.DisplayAlert(szTitle, szMessage, btnOk, btnCancel);' from the UI thread the alert gets displayed properly but when I click on one of its buttons Ι get an unhandled exception "No installed components were detected. The property path '(controls:AnimatedIcon.State)' could not be resolved for a Setter." where controls is defined as xmlns:controls="using:Microsoft.UI.Xaml.Controls"
Could you please help me find out what is going wrong? As far as I know the DisplayAlert() is handled by Xamarin.Forms.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KonstantinosKoumpanakis-6378 For this exception, please submit an issue on GitHub: xamarin/Xamarin.Forms.

0 Votes 0 ·

@KyleWang-MSFT Thank you for your quick reply! I will open an issue and let you know when it's resolved for future reference.

0 Votes 0 ·
KyleWang-MSFT avatar image KyleWang-MSFT KonstantinosKoumpanakis-6378 ·

@KonstantinosKoumpanakis-6378 Look forward to your update.

0 Votes 0 ·

0 Answers