xamarin / XamarinCommunityToolkit

The Xamarin Community Toolkit is a collection of Animations, Behaviors, Converters, and Effects for mobile development with Xamarin.Forms. It simplifies and demonstrates common developer tasks building iOS, Android, and UWP apps with Xamarin.Forms.
MIT License
1.59k stars 475 forks source link

Navigation stack layout error #1789

Open eduardoagr opened 2 years ago

eduardoagr commented 2 years ago

I am trying to navigate to another page and I am getting this error

System.NotSupportedException: 'Unable to activate instance of type Xamarin.Forms.Platform.Android.Platform+DefaultRenderer from native handle 0x7fff145c7444 (key_handle 0x32500df).

This is what I tried to do

<NavigationPage.TitleView>
        <StackLayout Orientation="Horizontal"
                     community:TouchEffect.Command="{Binding ProfileCommnd}"
                     HorizontalOptions="Start">
            <ffimageloadingsvg:SvgCachedImage Source="{Binding FireUser.PhotoUrl}"
                                              WidthRequest="40"
                                              HeightRequest="40" />
pictos commented 2 years ago

I believe this isn't related to XCT, maybe is an XF issue? Anyway, @eduardoagr Could you attach a small repro?

eduardoagr commented 2 years ago

here @pictos https://github.com/eduardoagr/Error

The problem comes when you try to use the TouchEffect on the stack, but if you use a gesture recognizer, it works fine