Reputation: 197
My login page XAML wont compile, the naming in its code behind is throwing an exception ( as below )
Entry Username & Entry Password are the x:Name's from XAML of LoginPage.
I do not see how the same files code behind can error out, or is it to do with the Android & IOS compatibility. Need some clarification so i can rectify for future developments. Cheers in advance.
B
Upvotes: 0
Views: 290
Reputation: 5964
Сheck your page login.xaml - x:Class attribute and root element. This is the main reason why InitializeComponent not working.
Example: This is not working
<ContentPage --root control
x:Class="Test.LoginPage"
namespace Test.Core.LoginPage
{
public partial class LoginPage: Grid
This is working:
<ContentPage --root control
x:Class="Test.LoginPage"
namespace Test.LoginPage
{
public partial class LoginPage: ContentPage
Upvotes: 1