.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,696 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I am trying to create a ContentPage in a MAUI Class Library using the below but it's not working.
namespace MyClass
{
// All the code in this file is included in all platforms.
public class MyAuth
{
public static Page Signin()
{
Grid grid = new Grid
{
RowDefinitions =
{
new RowDefinition { Height = new GridLength(50) },
new RowDefinition { Height = new GridLength(1, GridUnitType.Star) },
new RowDefinition { Height = new GridLength(1, GridUnitType.Auto) }
}
};
return new ContentPage
{
Content = grid;
};
}
}
}
Kindly help..
Thanks,
Jassim