Search code examples
c#xamlxamarin.formskeyboardvisual-studio-mac

Numeric Keyboard does not appear


I am building an app using Xamarin Forms. I have the following code for my keyboard:

<StackLayout Orientation="Horizontal" Grid.Row="2" Margin="0,0,0,20">
        <Entry Keyboard="Numeric" HeightRequest="200" WidthRequest="200"/>
</StackLayout>

This is what appears on my app:

enter image description here

Will the keyboard appear using on XAML? Or do I need to use C# to make it appear? What's causing the keyboard to not show up?


Solution

  • I added a get method to the .cs file that is assigned to that particular xaml file.

    public static Keyboard Numeric { get; }
    

    The keyboard appears when I click on the area pictured above.