How to pass a bool value to ControlTemplate in xamarin forms

Viewed 29

I need to pass a boolean value to control template.

XAML:

<views:NavMasterContentPage
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    ControlTemplate="{StaticResource StatusBarControlTemplate}">
</views:NavMasterContentPage>

StatusBarControlTemplate.CS:

public partial class StatusBarControl : StackLayout
{
}
0 Answers
Related