Last active
April 23, 2020 23:45
-
-
Save Char0394/32800aca256f8b3b89d533010ad488df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local="clr-namespace:GridSample" | |
x:Class="GridSample.GridSamplePage"> | |
<Grid VerticalOptions="CenterAndExpand"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="200" /> | |
</Grid.RowDefinitions> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="10*" /> | |
</Grid.ColumnDefinitions> | |
<Image Grid.Row="0" Grid.Column="0" Source="mountainPhoto" HorizontalOptions="FillAndExpand" Aspect="AspectFill"/> | |
<Label Grid.Row="0" Grid.Column="0" Text="Mountain Green" TextColor="White" VerticalOptions="End" HorizontalOptions="FillAndExpand"> | |
<Label.BackgroundColor> | |
<Color x:FactoryMethod="FromHsla"> | |
<x:Arguments> | |
<x:Double>0</x:Double> | |
<x:Double>0</x:Double> | |
<x:Double>0</x:Double> | |
<x:Double>0.6</x:Double> | |
</x:Arguments> | |
</Color> | |
</Label.BackgroundColor> | |
</Label> | |
</Grid> | |
</ContentPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment