Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Having an element with Grid.ColumnSpan=2 in a grid with no columns will create columns.

$
0
0

This seems like a bug. This is not how it works in wpf or silverlight. Should I create a bugzilla on this? Or is this expected undocumented xamarin behavior?

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Broken.MyPage">
    <ContentPage.Content>
        <Grid Padding="0,30,0,0" BackgroundColor="Green">
            <ContentView BackgroundColor="Fuchsia">
               <Label Text="Select Issue (optional)..." BackgroundColor="Blue"
                      VerticalOptions="Center"/>
            </ContentView>
            <Button BackgroundColor="Transparent" **Grid.ColumnSpan="2"**/>
        </Grid>
    </ContentPage.Content>
</ContentPage>

Screenshot: https://www.dropbox.com/s/wvjszrnf8kb5mh1/Screenshot 2015-01-21 10.19.03.png?dl=0


Viewing all articles
Browse latest Browse all 58056

Trending Articles