I am trying to do a fortune teller in XAML, but every time that I try to initiate a Textbox as an input for age and birth month, I failed and the it displays " <pre>The type 'TextBox' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built", Do I need to declare something before? Thanks
This is the code
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="FortuneTeller.MainPage">
<StackLayout>
<Frame BackgroundColor="#2196F3" Padding="24" CornerRadius="0">
<Label Text="Welcome to Fortune Teller" HorizontalTextAlignment="Center" TextColor="White" FontSize="36"/>
</Frame>
<Label Text="Enter your age, please" FontSize="Title" Padding="30,10,30,10"/>
<TextBox></TextBox>
<TextBox Width="500" Header="Notes" PlaceholderText="How old are you?"/>
<Label Text="Enter your Birth Month, please" FontSize="Title" Padding="30,10,30,10"/>
<TextBox Width="500" Header="Notes" PlaceholderText="What is your birth month?"/>
<Label FontSize="16" Padding="30,24,30,0">
<Label.FormattedText>
<FormattedString>
<FormattedString.Spans>
<Span Text="Learn more at "/>
<Span Text="https://aka.ms/xamarin-quickstart" FontAttributes="Bold"/>
</FormattedString.Spans>
</FormattedString>
</Label.FormattedText>
</Label>
</StackLayout>
</ContentPage>
What I have tried:
Even when my XAML does not have initially this class, <pre><Window x:Class="WpfApp5.MainWindow" , I tried to add it, without success, either.