Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Creating a Log out in masterdetailpage

$
0
0

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


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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