본문 바로가기

Programming/Xamarin

Xamarin forms 4.0 Shell MenuItem 버그

반응형

 

A value of type 'MenuItem' cannot be added to a collection or dictionary of type 'IList'

Shell에 MenuItem을 추가하여 사용할 때 xaml에서 위와 같은 에러를 확인할 수 있다.

ref: https://forums.xamarin.com/discussion/156725/what-happened-to-menuitems-in-shell

 

What happened to MenuItems in SHell?

I have been using the last few previews of Forms 4 and had a nice Flyout section with selectable items created from a database followed by MenuItems for things such as settings, About etc.

forums.xamarin.com

위 내용에 따르면 무시하고 빌드하면 동작한다고 한다.

실제로 무시하고 빌드하면 동작하지만 때때로 빌드타임에러가 난다.

동작에 무리가 없어보이지만 라이브 앱에 적용하여 배포하기엔 시기상조인 것 같다.

반응형