xamarin - Do I need to surround a <TableView> with a <StackLayout> in a <ContentPage> -
i working on application developer has <contentpage>
<tableview>
inside. needed / normal practice? trying work out why developer did this.
the developer added element surrounding <tableview>
<?xml version="1.0" encoding="utf-8"?> <contentpage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" title="network"> <contentpage.content> <stacklayout> <tableview> ... </tableview> </stacklayout> </contentpage.content> </contentpage>
a contentpage can have single child element. it's not uncommon include sort of layout container child, multiple child elements can added page. however, in cases there single child it's unnecessary.
Comments
Post a Comment