Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Shell : Custom icon for selected tab

$
0
0

Hello everybody,

I'm playing with the COOL xamarin shell, but I didn't found a way to change icon of the selected tab.

<TabBar Route="sections">
        <Tab Title="home">
            <Tab.Icon>
                <FontImageSource FontFamily="{StaticResource AppIcons}" Glyph="{x:Static framework:Icons.HomePage}" />
            </Tab.Icon>
            <ShellContent ContentTemplate="{DataTemplate home:HomePage}" Route="home" />
        </Tab>
</TabBar>

The goal is to use Icons.HomePageFilled instead of Icons.HomePage for this tab only when it's selected. Same logic should apply to other tabs.

I think I got lost in the solutions found on the web. They talk about Custom renderers, Visual states, effects etc ...
But I do not know if it is feasible and what is the ideal solution


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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