XamlC error XFC0000 : Cannot resolve type "Popup" in my xct:popup xaml file

37 Views Asked by At

How to solve the below error that appears in output window:

XamlC error XFC0000 : Cannot resolve type "Popup".

My code:

 <xct:Popup  xmlns:xct="http://xamarin.com/schemas/2020/toolkit" 
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="SWD_Trening.NewEvent"
    IsLightDismissEnabled="False"
    Size="1000,600"/>

   <StackLayout>


   </StackLayout>
 </xct:Popup>
1

There are 1 best solutions below

3
Cfun On BEST ANSWER

you have to include the namespace where the popup is defined:

Xamarin Forms

xmlns:xct="clr-namespace:Xamarin.CommunityToolkit.UI.Views;assembly=Xamarin.CommunityToolkit"

Please take a look at the official documentation: Xamarin Forms communitytoolkit popup

MAUI

xmlns:xct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"

Please take a look at the official documentation: MAUI communitytoolkit popup