@ -1,9 +1,9 @@
|
|||||||
namespace YOUserbase;
|
namespace YOUserbase;
|
||||||
|
|
||||||
public partial class App : Application {
|
public partial class App : Application {
|
||||||
public App() {
|
public App() {
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
MainPage = new LoginShell();
|
MainPage = new LoginShell();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,8 +1,8 @@
|
|||||||
namespace YOUserbase;
|
namespace YOUserbase;
|
||||||
|
|
||||||
public partial class AppShell : Shell {
|
public partial class AppShell : Shell {
|
||||||
public AppShell() {
|
public AppShell() {
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Routing.RegisterRoute(nameof(UserOverviewPage), typeof(UserOverviewPage));
|
Routing.RegisterRoute(nameof(UserOverviewPage), typeof(UserOverviewPage));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,49 +1,48 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage
|
<ContentPage
|
||||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
xmlns:youserbase="clr-namespace:YOUserbase"
|
xmlns:youserbase="clr-namespace:YOUserbase"
|
||||||
xmlns:local="clr-namespace:YOUserbase"
|
x:DataType="youserbase:LoginPage"
|
||||||
x:DataType="youserbase:LoginPage"
|
|
||||||
x:Class="YOUserbase.LoginPage">
|
x:Class="YOUserbase.LoginPage">
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<VerticalStackLayout
|
<VerticalStackLayout
|
||||||
Spacing="25"
|
Spacing="25"
|
||||||
VerticalOptions="Center"
|
VerticalOptions="Center"
|
||||||
HorizontalOptions="Center">
|
HorizontalOptions="Center">
|
||||||
<Image
|
<Image
|
||||||
Source="logo_white.png"
|
Source="{AppThemeBinding Light=logo.png, Dark=logo_white.png}"
|
||||||
SemanticProperties.Description="YOUserbase Logo"
|
SemanticProperties.Description="YOUserbase Logo"
|
||||||
MaximumWidthRequest="300"
|
MaximumWidthRequest="300"
|
||||||
MaximumHeightRequest="340"
|
MaximumHeightRequest="340"
|
||||||
MinimumWidthRequest="300"
|
MinimumWidthRequest="300"
|
||||||
MinimumHeightRequest="340" />
|
MinimumHeightRequest="340" />
|
||||||
<Label
|
<Label
|
||||||
Text="YOUserbase"
|
Text="YOUserbase"
|
||||||
SemanticProperties.HeadingLevel="Level4"
|
SemanticProperties.HeadingLevel="Level4"
|
||||||
FontSize="48"
|
FontSize="48"
|
||||||
FontFamily="BlimoneRegular"
|
FontFamily="BlimoneRegular"
|
||||||
HorizontalOptions="Center" />
|
HorizontalOptions="Center" />
|
||||||
|
|
||||||
<Label
|
<Label
|
||||||
x:Name="lblUsername"
|
x:Name="lblUsername"
|
||||||
Text="Username:"
|
Text="Username:"
|
||||||
WidthRequest="500" />
|
WidthRequest="500" />
|
||||||
<Entry
|
<Entry
|
||||||
x:Name="UsernameEntry"
|
x:Name="UsernameEntry"
|
||||||
WidthRequest="500" />
|
WidthRequest="500" />
|
||||||
<Label
|
<Label
|
||||||
x:Name="lblPassword"
|
x:Name="lblPassword"
|
||||||
Text="Password:"
|
Text="Password:"
|
||||||
WidthRequest="500" />
|
WidthRequest="500" />
|
||||||
<Entry
|
<Entry
|
||||||
x:Name="PasswordEntry"
|
x:Name="PasswordEntry"
|
||||||
IsPassword="true"
|
IsPassword="true"
|
||||||
WidthRequest="500" />
|
WidthRequest="500" />
|
||||||
<Button
|
<Button
|
||||||
x:Name="btnLogin"
|
x:Name="btnLogin"
|
||||||
Text="Login"
|
Text="Login"
|
||||||
Clicked="OnLoginClicked"
|
Clicked="OnLoginClicked"
|
||||||
WidthRequest="500" />
|
WidthRequest="500" />
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
namespace YOUserbase;
|
namespace YOUserbase;
|
||||||
|
|
||||||
public partial class LoginShell : Shell {
|
public partial class LoginShell : Shell {
|
||||||
public LoginShell() {
|
public LoginShell() {
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,8 +1,8 @@
|
|||||||
using Foundation;
|
using Foundation;
|
||||||
|
|
||||||
namespace YOUserbase;
|
namespace YOUserbase;
|
||||||
|
|
||||||
[Register("AppDelegate")]
|
[Register("AppDelegate")]
|
||||||
public class AppDelegate : MauiUIApplicationDelegate {
|
public class AppDelegate : MauiUIApplicationDelegate {
|
||||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||||
}
|
}
|
||||||
@ -1,13 +1,13 @@
|
|||||||
using ObjCRuntime;
|
using ObjCRuntime;
|
||||||
using UIKit;
|
using UIKit;
|
||||||
|
|
||||||
namespace YOUserbase;
|
namespace YOUserbase;
|
||||||
|
|
||||||
public class Program {
|
public class Program {
|
||||||
// This is the main entry point of the application.
|
// This is the main entry point of the application.
|
||||||
static void Main(string[] args) {
|
static void Main(string[] args) {
|
||||||
// if you want to use a different Application Delegate class from "AppDelegate"
|
// if you want to use a different Application Delegate class from "AppDelegate"
|
||||||
// you can specify it here.
|
// you can specify it here.
|
||||||
UIApplication.Main(args, null, typeof(AppDelegate));
|
UIApplication.Main(args, null, typeof(AppDelegate));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 229 B |
|
After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |