Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

RadioButton does not work in Xamarin Forms

$
0
0

Here is my code snippet in a Xamarin xaml form:

                <StackLayout Grid.Row="5" Orientation="Horizontal">
                    <Label Text="Gender" FontSize="Small" />
                    <RadioButton Text="Male"/>
                </StackLayout>

I have the following in my App constructor

    public App()
    {
        InitializeComponent();
        Device.SetFlags(new string[] { "RadioButton_Experimental" });

}

I get the following error:

System.TypeLoadException: 'Could not resolve type with token 0100009d from typeref (expected class 'Xamarin.Forms.RadioButton' in assembly 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null')'

I am using Xamarin Forms 4.8.0.1687 and Xamarin Essentials 1.5.3.2

Any and all help will be appreciated.


Viewing all articles
Browse latest Browse all 89864

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>