-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CreateRendererWithContext working in xamarin not working in MAUI #15525
Comments
Can anyone please help on this. |
@jsuarezruiz could you please help on this. |
any update on this? |
mistakenly clicked on close. any update on this? |
I have a similar issue with a SearchBarRenderer: Here is the renderer code:
And here is hte exception:
|
@bnoffer did u find any solution to your exception? |
@shirishavanquis instead of
if you call
Does that work? The |
@PureWeen where to add this could you please tell how to modify this line |
for reference, turn a MAUI element into a platform view , you can change
to
|
Verified this issue with Visual Studio for mac 17.6.8 (build 400). Can repro on Android platforms with sample project. |
I have the same issue. |
@DeveloperLookBook Did you got any solution to resolve the SearchBarRenderer? |
Description
i am working on migrating xamarin forms project to .net MAUI.
i have followed the steps mentioned din the below link.
https://github.com/dotnet/maui/wiki/Migrating-from-Xamarin.Forms-(Preview)/979f30cf295ac8eab2f459211cf80a481fd2db6e
the migrated MAUI project is multi project (forms, iOS, Android). I am re using the renderers with MAUI compatibility packages.
getting exception on below line in one of the renderer files in android.
CreateRendererWithContext (Element, Context). Element is the NavigationPage which i am passing.
It is working in xamarin but giving exception in MAUI.
Exception Details :
{Android.Views.InflateException: Binary XML file line #1 in com.companyname.librarytestappmaui:layout/fragment_backstack: Error inflating class androidx.fragment.app.FragmentContainerView ---> Java.Lang.IllegalStateException: FragmentManager is already executing transactions …} Android.Views.InflateException
I have attached exception screenshots.
could someone please help on this.
i am using KeyboardWrapperPage as MainPage in App.Xaml.cs
below is my KeyboardWrapperPage class in forms project
below is my KeyboardWrapperPageRenderer class in android project
below is my MauiProgram.cs in android project.
below is my App.Xaml.cs
Steps to Reproduce
Expected outcome : app should not crash as it s working in xamarin
Actual outcome : app is crashing.
Link to public reproduction project repository
https://github.com/shirishavanquis/MAUIIssue.git
Version with bug
7.0.49
Last version that worked well
6.0
Affected platforms
Android
Affected platform versions
Android 13 and below
Did you find any workaround?
NO
Relevant log output
No response
The text was updated successfully, but these errors were encountered: