Hi,
We have a existing Xamarin forms test app with a rotator that loads the templates from xaml files. We are trying to do the same thing in .Net Maui and it fails on the Windows version.
We are investigation porting to .Net Maui for our app. In our old Xamarin forms app we would use 'LoadFromXaml' to create the Templates for the rotator. We have tried doing the same thing in .Net Maui however it blows up on 'LoadFromXaml'. We can confirm that the app works on Android, and doesnt work on Windows in .Net Maui.
We beleive this happens because the dependency for the button is not loaded from inside the template. We We have a work around that works by adding a reference to the SfButton in the ViewModel Base class.
To Test:
Result in .Net Maui:
Hi Mark,
Currently, we are in the process of validating the reported query based on the provided information at our end and will share further details regarding this issue on or before May 13, 2024. Thank you for your cooperation and understanding.
Regards,
Brundha V
Hi Mark,
Currently, we are in the process of validating the reported query based on the provided information at our end and will share further details regarding this issue on or before May 15, 2024. Thank you for your cooperation and understanding.
Regards,
Brundha V
Hi Mark,
Thank you for your patience.
We have fixed the reported issue of "SfRotator won't work with Templates if the Xaml contains SfButton." at our source. At present, the latest custom patch has been created for version 25.2.4. We have attached the NuGet file for your convenience.
Please note that we have created this patch for version 25.2.4 specifically to resolve the issue reported in this ticket. If you have received other patches for the same version for other products, please apply all patches in the order received.
Please clear the NuGet cache, before using the latest one and please refer to the below link for this
Please refer to the below KB to install the custom NuGet on a local machine,
How to install the MAUI custom NuGet in the Windows machine?
Note: Before installing the Rotator and Buttons NuGet package, please install the provided custom patch for Core after clearing the cache.
This fix will be included in our upcoming weekly release on May 28, 2024. We will notify you once NuGet is released and appreciate your understanding and patience until that time.
Disclaimer: The inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.
Root cause and resolution:
Root Cause: This issue stemmed from the fact that the parent is not removed while reassigning the parent to the element in the SfRotator source.
Resolution: We have fixed this issue by adding the parent removal logic before assigning the parent of the Element at the SfRotator Native source.
Please don't hesitate to reach out if you have any concerns or questions.
Regards,
Prithis I
Hi Prithis,
Thank you very much for the fix. We have followed your instructions using the new version of core and it works.
Thank you so much for the awesome support.
Thanks,
Mark
Hi Mark,
We have included the fix for the reported issue "SfRotator won't work with Templates if the Xaml contains SfButton." in our latest weekly NuGet release v25.2.6 which is available for download (NuGet). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.
Regards,
Prithis I.