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

How this TableView xaml can't work?

$
0
0

this is a part of my xaml file

<StackLayout VerticalOptions ="Center" Orientation ="Vertical" HorizontalOptions ="Center">
    <Label Text = "head"/>
    <TableView Intent ="Menu" BackgroundColor = "White">
        <TableRoot>
            <TableSection >
                <TextCell Text ="Email" TextColor = "Red"/>
                <TextCell Text ="Password"/>
                <TextCell Text ="RePassword"/>
            </TableSection>

            <TableSection>
                <TextCell Text ="Email"/>
                <TextCell Text ="Password"/>
                <TextCell Text ="RePassword"/>
            </TableSection>
        </TableRoot>
    </TableView>
</StackLayout>

I got a runtime error

Object type Xamarin.Forms.TableSection cannot be converted to target type: Xamarin.Forms.View


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>