Hello Vanaja,
Thanks for sample. But this is for click of the hamburger icon. It is working fine in my solution. But my problem is with button, image etc click event in SfNavigationDrawer.DrawerHeaderView of SfNavigationDrawer. Following is code of DrawerHeaderView
<navigation:SfNavigationDrawer.DrawerHeaderView>
<StackLayout Orientation="Vertical" BackgroundColor="{StaticResource BlackBackground}" Margin="0,0,0,0">
<Image x:Name="imgLogo" Source="logo_side_small" Margin="20,5,0,0" HorizontalOptions="Start"/>
<Button x:Name="btnNewTeam"></Button>
</StackLayout></navigation:SfNavigationDrawer.DrawerHeaderView>
I want to fire click event of button 'btnNewTeam' and tap gesture of 'imgLogo' Image. But they are not working. Can you please provide a sample of these.
Hi! I'm having the same issue, but with a stack layout.
My code:
<xForms:SfNavigationDrawer.DrawerContentView>
<!--Conteúdo do menu-->
<StackLayout x:Name="MenuContent" BackgroundColor="{StaticResource BackgroundColor}">
<ScrollView>
<StackLayout x:Name="MenuContentView" Margin="0" Padding="5" Orientation="Vertical" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" BackgroundColor="{StaticResource BackgroundColor}">
<StackLayout Padding="10, 2, 10, 10" Orientation="Horizontal" VerticalOptions="Center">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="Indicate_OnTapped"></TapGestureRecognizer>
</StackLayout.GestureRecognizers>
<Image Source="indicate.png" WidthRequest="18"></Image>
<Label Text="Ganhe Indicando Amigos" x:Name="LabelIndicate" FontSize="18" TextColor="{StaticResource PrimaryChangeableColor}"></Label>
</StackLayout>....
<StackLayout.GestureRecognizers> works sometimes, with some phones (some phones are ok).