Skip to content

Commit 2d90ec1

Browse files
code optimized
1 parent 7d6e143 commit 2d90ec1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

LoginForm/LoginForm/MainPage.xaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<ContentPage.BindingContext>
1010
<local:DataFormViewModel/>
1111
</ContentPage.BindingContext>
12-
<Border Background="{OnIdiom Default=Transparent, Desktop=#83E9EE}" >
13-
<Grid ColumnDefinitions="0.5*, 0.5*" RowDefinitions="0.3*, 0.7*" >
12+
<Grid ColumnDefinitions="0.5*, 0.5*" RowDefinitions="0.3*, 0.7*"
13+
Background="{OnIdiom Default=Transparent, Desktop=#83E9EE}">
1414
<Border Grid.ColumnSpan="{OnIdiom Default=2, Desktop=1}" Stroke="Transparent" Background="{OnIdiom Phone=#83E9EE,Desktop=Transparent}"
1515
Grid.RowSpan="{OnIdiom Default=1, Desktop=2}">
1616
<Border.StrokeShape>
1717
<RoundRectangle CornerRadius="0,0,100,100"/>
1818
</Border.StrokeShape>
19-
<Image Source="login.png" Grid.Row="0" Grid.Column="0" HorizontalOptions="Center" Aspect="AspectFit"
20-
/>
19+
<Image Source="login.png" Grid.Row="0" Grid.Column="0" HorizontalOptions="Center" Aspect="AspectFit"/>
2120
</Border>
21+
2222
<Frame CornerRadius="10" Grid.Column="{OnIdiom Default=0, Desktop=1}" BorderColor="White" HeightRequest="420" Background="White"
2323
Grid.Row="{OnIdiom Default=1, Desktop=0}"
2424
WidthRequest="380" VerticalOptions="{OnIdiom Default=Start, Desktop=Center}"
@@ -59,7 +59,7 @@
5959
<Label Text="Forgot password?" Grid.Column="1" TextColor="{StaticResource Primary}" HorizontalTextAlignment="Center" Padding="10,0,0,0" FontSize="12" VerticalOptions="Center" />
6060
</Grid>
6161

62-
<Button Text="LOGIN" x:Name="loginButton" HeightRequest="40" VerticalOptions="End"
62+
<Button Text="LOGIN" x:Name="loginButton" HeightRequest="40" VerticalOptions="End"
6363
HorizontalOptions="Fill" Margin="20,0,20,0" CornerRadius="10"
6464
Padding="0" FontAttributes="Bold"
6565
Grid.Row="3" Background="{StaticResource Primary}"/>
@@ -79,7 +79,6 @@
7979
</Grid>
8080
</Frame>
8181
</Grid>
82-
</Border>
8382
<ContentPage.Behaviors>
8483
<local:LoginFormBehavior/>
8584
</ContentPage.Behaviors>

0 commit comments

Comments
 (0)