|
9 | 9 | <ContentPage.BindingContext> |
10 | 10 | <local:DataFormViewModel/> |
11 | 11 | </ContentPage.BindingContext> |
12 | | - <Grid ColumnDefinitions="0.5*, 0.5*" RowDefinitions="0.3*, 0.7*" |
13 | | - Background="{OnIdiom Default=Transparent, Desktop=#83E9EE}"> |
14 | | - <Border Grid.ColumnSpan="{OnIdiom Default=2, Desktop=1}" Stroke="Transparent" Background="{OnIdiom Phone=#83E9EE,Desktop=Transparent}" |
15 | | - Grid.RowSpan="{OnIdiom Default=1, Desktop=2}"> |
16 | | - <Border.StrokeShape> |
17 | | - <RoundRectangle CornerRadius="0,0,100,100"/> |
18 | | - </Border.StrokeShape> |
| 12 | + <Grid ColumnDefinitions="0.5*, 0.5*" RowDefinitions="0.3*, 0.7*" |
| 13 | + Background="{OnPlatform Default=Transparent, WinUI=#83E9EE,MacCatalyst=#83E9EE}"> |
| 14 | + <Border Grid.ColumnSpan="{OnPlatform Default=2, WinUI=1, MacCatalyst=1}" Stroke="Transparent" Background="{OnPlatform Default=#83E9EE,WinUI=Transparent, MacCatalyst=Transparent}" |
| 15 | + Grid.RowSpan="{OnPlatform Default=1, WinUI=2, MacCatalyst=2}"> |
| 16 | + <Border.StrokeShape> |
| 17 | + <RoundRectangle CornerRadius="0,0,100,100"/> |
| 18 | + </Border.StrokeShape> |
19 | 19 | <Image Source="login.png" Grid.Row="0" Grid.Column="0" HorizontalOptions="Center" Aspect="AspectFit"/> |
20 | | - </Border> |
21 | | - |
22 | | - <Frame CornerRadius="10" Grid.Column="{OnIdiom Default=0, Desktop=1}" BorderColor="White" HeightRequest="420" Background="White" |
23 | | - Grid.Row="{OnIdiom Default=1, Desktop=0}" |
24 | | - WidthRequest="380" VerticalOptions="{OnIdiom Default=Start, Desktop=Center}" |
25 | | - Grid.ColumnSpan="{OnIdiom Default=2, Desktop=1}" |
26 | | - Grid.RowSpan="{OnIdiom Default=1, Desktop=2}" > |
27 | | - <Grid IsClippedToBounds="True" HeightRequest="420" > |
28 | | - <Grid.RowDefinitions> |
29 | | - <RowDefinition Height="90"/> |
30 | | - <RowDefinition Height="{OnIdiom Default=180, Desktop=155}"/> |
31 | | - <RowDefinition Height="50"/> |
32 | | - <RowDefinition Height="40"/> |
33 | | - <RowDefinition Height="40"/> |
34 | | - </Grid.RowDefinitions> |
35 | | - <Grid.BindingContext> |
36 | | - <local:DataFormViewModel/> |
37 | | - </Grid.BindingContext> |
38 | | - <Label Padding="0,10,0,0" |
| 20 | + </Border> |
| 21 | + |
| 22 | + <Frame CornerRadius="10" Grid.Column="{OnPlatform Default=0, WinUI=1, MacCatalyst=1}" BorderColor="White" HeightRequest="420" Background="White" |
| 23 | + Grid.Row="{OnPlatform Default=1, WinUI=0,MacCatalyst=0}" |
| 24 | + WidthRequest="380" VerticalOptions="{OnPlatform Default=Start, WinUI=Center , MacCatalyst=Center}" |
| 25 | + Grid.ColumnSpan="{OnPlatform Default=2, WinUI=1, MacCatalyst=1}" |
| 26 | + Grid.RowSpan="{OnPlatform Default=1, WinUI=2, MacCatalyst=2}" > |
| 27 | + <Grid IsClippedToBounds="True" HeightRequest="420" > |
| 28 | + <Grid.RowDefinitions> |
| 29 | + <RowDefinition Height="90"/> |
| 30 | + <RowDefinition Height="*"/> |
| 31 | + <RowDefinition Height="50"/> |
| 32 | + <RowDefinition Height="40"/> |
| 33 | + <RowDefinition Height="40"/> |
| 34 | + </Grid.RowDefinitions> |
| 35 | + <Grid.BindingContext> |
| 36 | + <local:DataFormViewModel/> |
| 37 | + </Grid.BindingContext> |
| 38 | + <Label Padding="0,10,0,0" |
39 | 39 | HorizontalOptions="Center" HorizontalTextAlignment="Center" VerticalTextAlignment="Start"> |
40 | | - <Label.FormattedText> |
41 | | - <FormattedString> |
42 | | - <Span Text="Welcome back" FontSize="32" FontAttributes="Bold"/> |
43 | | - <Span Text="{x:Static system:Environment.NewLine}"/> |
44 | | - <Span Text="Login to your account" FontSize="14"/> |
45 | | - </FormattedString> |
46 | | - </Label.FormattedText> |
47 | | - </Label> |
| 40 | + <Label.FormattedText> |
| 41 | + <FormattedString> |
| 42 | + <Span Text="Welcome back" FontSize="32" FontAttributes="Bold"/> |
| 43 | + <Span Text="{x:Static system:Environment.NewLine}"/> |
| 44 | + <Span Text="Login to your account" FontSize="14"/> |
| 45 | + </FormattedString> |
| 46 | + </Label.FormattedText> |
| 47 | + </Label> |
48 | 48 |
|
49 | | - <dataForm:SfDataForm x:Name="loginForm" LayoutType="TextInputLayout" |
| 49 | + <dataForm:SfDataForm MinimumHeightRequest="{OnPlatform Default=160, WinUI=155, MacCatalyst=155}" x:Name="loginForm" VerticalOptions="Start" LayoutType="TextInputLayout" |
50 | 50 | Grid.Row="1" DataObject="{Binding LoginFormModel}" |
51 | 51 | ValidationMode="PropertyChanged" > |
52 | | - </dataForm:SfDataForm> |
| 52 | + </dataForm:SfDataForm> |
53 | 53 |
|
54 | | - <Grid ColumnDefinitions="0.5*,0.5*" Grid.Row="2" Padding="12,0,0,0" VerticalOptions="Start"> |
55 | | - <HorizontalStackLayout VerticalOptions="Center" Padding="10,0,0,0" > |
56 | | - <CheckBox Color="{StaticResource Primary}"/> |
57 | | - <Label Text="Remember me" FontSize="12" VerticalOptions="Center" /> |
58 | | - </HorizontalStackLayout> |
59 | | - <Label Text="Forgot password?" Grid.Column="1" TextColor="{StaticResource Primary}" HorizontalTextAlignment="Center" Padding="10,0,0,0" FontSize="12" VerticalOptions="Center" /> |
60 | | - </Grid> |
| 54 | + <Grid ColumnDefinitions="0.5*,0.5*" Grid.Row="2" Padding="12,0,0,0" VerticalOptions="Start"> |
| 55 | + <HorizontalStackLayout VerticalOptions="Center" Padding="10,0,0,0" > |
| 56 | + <CheckBox Color="{StaticResource Primary}"/> |
| 57 | + <Label Text="Remember me" FontSize="12" VerticalOptions="Center" /> |
| 58 | + </HorizontalStackLayout> |
| 59 | + <Label Text="Forgot password?" Grid.Column="1" TextColor="{StaticResource Primary}" HorizontalTextAlignment="Center" Padding="10,0,0,0" FontSize="12" VerticalOptions="Center" /> |
| 60 | + </Grid> |
61 | 61 |
|
62 | 62 | <Button Text="LOGIN" x:Name="loginButton" HeightRequest="40" VerticalOptions="End" |
63 | 63 | HorizontalOptions="Fill" Margin="20,0,20,0" CornerRadius="10" |
64 | 64 | Padding="0" FontAttributes="Bold" |
65 | 65 | Grid.Row="3" Background="{StaticResource Primary}"/> |
66 | 66 |
|
67 | 67 |
|
68 | | - <Label Grid.Row="4" Padding="0,12,0,0" |
| 68 | + <Label Grid.Row="4" Padding="0,12,0,0" |
69 | 69 | HorizontalOptions="Center" |
70 | 70 | HorizontalTextAlignment="Center" |
71 | 71 | FontSize="14"> |
72 | | - <Label.FormattedText> |
73 | | - <FormattedString> |
74 | | - <Span Text="Don't have an account? " /> |
75 | | - <Span Text="Sign Up" TextDecorations="Underline" TextColor="{StaticResource Primary}"/> |
76 | | - </FormattedString> |
77 | | - </Label.FormattedText> |
78 | | - </Label> |
79 | | - </Grid> |
80 | | - </Frame> |
81 | | - </Grid> |
| 72 | + <Label.FormattedText> |
| 73 | + <FormattedString> |
| 74 | + <Span Text="Don't have an account? " /> |
| 75 | + <Span Text="Sign Up" TextDecorations="Underline" TextColor="{StaticResource Primary}"/> |
| 76 | + </FormattedString> |
| 77 | + </Label.FormattedText> |
| 78 | + </Label> |
| 79 | + </Grid> |
| 80 | + </Frame> |
| 81 | + </Grid> |
82 | 82 | <ContentPage.Behaviors> |
83 | 83 | <local:LoginFormBehavior/> |
84 | 84 | </ContentPage.Behaviors> |
|
0 commit comments