XamarinCommunityToolkit icon indicating copy to clipboard operation
XamarinCommunityToolkit copied to clipboard

System.Exception: 'Handler not found for view Xamarin.CommunityToolkit.UI.Views.Expander

Open vplife1 opened this issue 3 years ago • 9 comments

I have used Visual studio 2022 preview 2.0 MAUI.I want to used a expander using Community toolkit ,But right now i am facing a exception " System.Exception: 'Handler not found for view Xamarin.CommunityToolkit.UI.Views.Expander.'" How can i resolve this issue please Guide me .

Also I have download the nuget. 1)Xamarin Community Toolkit Markup MauiCompat 2)Xamarin.CommunityToolkit.MauiCompat NOTE:--I want a MAUI Expander Control Please share me a solution My View Is:-

NameSpace:- xmlns:behaviors="http://xamarin.com/schemas/2020/toolkit" View:- behaviors:Expander behaviors:Expander.Header

<Image.Triggers> </Image.Triggers>

</behaviors:Expander.Header>

behaviors:Expander.ContentTemplate <DataTemplet> </DataTemplet> </behaviors:Expander.ContentTemplate>

</behaviors:Expander>

vplife1 avatar Jan 18 '22 10:01 vplife1

@vplife1 Could you attach a small repro?

pictos avatar Jan 18 '22 11:01 pictos

@pictos I have create a small project . used Visual studio 2022 preview 2.0 MAUI. Now the Expander UI is not display please check .Download my source.

https://github.com/vplife1/MauiApp3.git

vplife1 avatar Jan 18 '22 12:01 vplife1

@pictos have you get any solution for expander ,Have you checck

vplife1 avatar Jan 18 '22 15:01 vplife1

https://github.com/xamarin/XamarinCommunityToolkit/issues/1750#issuecomment-985645536

VladislavAntonyuk avatar Jan 21 '22 13:01 VladislavAntonyuk

@pictos Have you check??

vplife1 avatar Jan 21 '22 13:01 vplife1

@vplife1 didn't have a chance yet, I was working on other tasks. As mentioned by @VladislavAntonyuk if you're using a MAUI application you shouldn't use our MauiCompat packages use this instead. Be aware that this version was built on top of Maui p11, so it may fail on p12

pictos avatar Jan 21 '22 14:01 pictos

@pictos Thank you reply. I will happy to use Maui Community Toolki.

vplife1 avatar Jan 21 '22 14:01 vplife1

@vplife1 I managed to make it work with MAUI by removing the BaseTemplatedView and copying the source code from xf community (Expander), implementing the component from scratch.

Preview: expander

There are some bugs.

Lucasvor avatar May 31 '22 03:05 Lucasvor

Expander will be a part of MCT 1.1.0

VladislavAntonyuk avatar May 31 '22 06:05 VladislavAntonyuk