Hi xamarin forum
can I have an idea how to create a fully function log out inside a listview here is my code
<ListView x:Name="listView">
<ListView.ItemsSource>
<x:Array Type="{x:Type local:MasterPageItem}" x:Name="defaultList">
<local:MasterPageItem Title="Home Page" TargetType="{x:Type local:MainPage}" />
<local:MasterPageItem Title="Log Out" TargetType="{x:Type local:Logout}" />
</x:Array>
</ListView.ItemsSource>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Padding="5,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30"/>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Image Source="{Binding IconSource}" />
<Label Grid.Column="1" Text="{Binding Title}" TextColor="White" />
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
I tried to use void Logout(object sender, eventArgs e) but it doesnt work