daltonks / Spillman.Xamarin.Forms.ToolbarItemIsVisible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spillman.Xamarin.Forms.ToolbarItemIsVisible

Until Xamarin Forms provides an IsVisible property for ToolbarItem, this attached property can be used.

Example:

<ContentPage ...
             xmlns:tbiv="clr-namespace:Spillman.Xamarin.Forms;assembly=Spillman.Xamarin.Forms.ToolbarItemIsVisible">
    
    <ContentPage.ToolbarItems>
        <ToolbarItem tbiv:ToolbarItemIsVisible.IsVisible="{Binding IsToolbarItemVisible}" />
    </ContentPage.ToolbarItems>

</ContentPage>

About

License:MIT License


Languages

Language:C# 100.0%