xamarin.forms - Xamarin Forms TableView in XAML -
xamarin.forms - Xamarin Forms TableView in XAML -
can tell me how set tableview in xaml please. tried -
class="lang-xml prettyprint-override"><?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="xyz.forms.hardcodedcells">     <contentpage.content>     <stacklayout>     <label text="above tableview"></label>     <tableview>         <tableroot>             <tablesection title="test">                      <textcell text="test"></textcell>             </tablesection>         </tableroot>     </tableview>     </stacklayout>     </contentpage.content> </contentpage>    this "attempt" renders blank on screen?
and if add together cells, entrycell, tablesection -
"object type xamarin.forms.textcell cannot converted target type: xamarin.forms.view"
as aside , can see valid xaml syntax each forms element?
i should not have used tableroot tableview.root
as aside, here right code , how can drop in custom cell straight in tableview xaml.
class="lang-xml prettyprint-override"><?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="xyz.forms.hardcodedcells">     <contentpage.content>     <stacklayout>     <label text="above tableview"></label>     <tableview>         <tableview.root>             <tablesection title="test">                      <entrycell label="entrycell"></entrycell>                 <textcell text="test"></textcell>                 <viewcell>                     <viewcell.view>                         <stacklayout orientation="horizontal" >                         <boxview color="red"></boxview>                         <stacklayout>                             <label text="news item 1"></label>                             <label text="news url 1"></label>                         </stacklayout>                         <boxview x:name="boxview" color="blue" ></boxview>                         </stacklayout>                           </viewcell.view>                 </viewcell>             </tablesection>         </tableview.root>     </tableview>     </stacklayout>     </contentpage.content> </contentpage>        xamarin.forms 
 
Comments
Post a Comment