Last active
March 5, 2019 17:29
-
-
Save MartinZikmund/d9f15341a738226d95ad305187e0aa89 to your computer and use it in GitHub Desktop.
Demonstrates Xamarin.Forms ColumnSpan oddity
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
<Grid> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="*" /> | |
<ColumnDefinition Width="*" /> | |
</Grid.ColumnDefinitions> | |
<BoxView BackgroundColor="#0894A1" Grid.ColumnSpan="2" | |
HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" /> | |
<BoxView BackgroundColor="#47AB6C" Grid.Column="1" Grid.ColumnSpan="2" | |
HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" /> | |
<Frame BackgroundColor="#ED553B" WidthRequest="80" HeightRequest="80" Grid.ColumnSpan="2" | |
HorizontalOptions="Center" VerticalOptions="Center"> | |
<Label LineBreakMode="WordWrap" Text="This box should be centered" | |
HorizontalTextAlignment="Center" VerticalOptions="Center" /> | |
</Frame> | |
</Grid> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment