Hello,
Welcome to our Microsoft Q&A platform!
The error is: Property 'Content' does not support values of type 'MainPage'
The xct:TabViewItem
control is type of TemplatedView
, we cannot place a contentPage inside it. It supports to use the ContentView
, try using a contentView instead.
<xct:TabViewItem
TabWidth="{Binding TabWidth}"
Text="Home"
FontFamily="MyIcon">
...
<local:View1 />
</xct:TabViewItem>
Related doc about the Xamarin Community Toolkit TabView: https://devblogs.microsoft.com/xamarin/xamarin-community-toolkit-tabview/
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.