c# - Content of child page doesn't show in tabbedpage (Xamarin Forms) -


i'm new xamarin , xaml downloaded sample solution has 3 tabbed pages , each of them contains child page. each child page has label different text on it. managed write program supposed same thing, label doesn't show on of child pages. can change background color , title on child pages.

here's code mainpage (tabpage):

<?xml version="1.0" encoding="utf-8" ?> <tabbedpage xmlns="http://xamarin.com/schemas/2014/forms"              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"              xmlns:pages="clr-namespace:mozaikmuzeum_xamarin.view;assembly=mozaikmuzeum_xamarin"              x:class="mozaikmuzeum_xamarin.view.tabpage">    <tabbedpage.children>      <pages:actualpage />     <pages:catalogpage />     <pages:badgespage />     </tabbedpage.children> </tabbedpage> 

and here's code 1 of child pages:

<?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="mozaikmuzeum_xamarin.view.actualpage" title="aktuális" backgroundcolor="green">   <label text="{binding maintext}" verticaloptions="center" horizontaloptions="center" />   <contentpage.content>      <label text="hi there page 1" textcolor="white" font="20"         verticaloptions="center" horizontaloptions="center" />    </contentpage.content> </contentpage> 

no label on child page.

as can see label doesn't show between contantpage.content tags.


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

javascript - Form validation angular -

android - Create single AAR file from multiple modules using Gradle -