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

TabbedPage: Icon next to Title?

$
0
0

Its possible to do it in Android?

My code:

TabbContainer.xaml:

<?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:local="clr-namespace:TabbedPageTest"
             x:Class="TabbedPageTest.TabbContainer">
  <local:Tabb1 Icon="icon1.png"/>
  <local:Tabb2 Icon="icon2.png"/>
</TabbedPage>

Tabb1.xaml:

<?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="TabbedPageTest.Tabb1"
             Title="Tabb 1">
  <Label Text="Tabb1" VerticalOptions="Center" HorizontalOptions="Center" />
</ContentPage>

(the same in Tabb2.xaml)


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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