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

How to switch contents of Masterdetail page on logging in

$
0
0

Hi is it possible to change the content of masterdetailpage on log in im currently using DataTemplate
<DataTemplate x:Key="DefaultMenu"> <ViewCell> <Grid Padding="5,10"> <Grid.ColumnDefinitions> <ColumnDefinition Width="30"/> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <ListView x:Name="listView"> <ListView.ItemsSource> <x:Array Type="{x:Type local:MasterPageItem}"> <local:MasterPageItem Title="Home Page" TargetType="{x:Type local:HomePage}" /> </x:Array> </ListView.ItemsSource> </ListView> </Grid> </ViewCell> </DataTemplate> <DataTemplate x:Key="LoggedMenu"> <ViewCell> <Grid Padding="5,10"> <Grid.ColumnDefinitions> <ColumnDefinition Width="30"/> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <ListView x:Name="listView"> <ListView.ItemsSource> <x:Array Type="{x:Type local:MasterPageItem}"> <local:MasterPageItem Title="Logout" TargetType="{x:Type local:LoginPage}" /> </x:Array> </ListView.ItemsSource> </ListView> </Grid> </ViewCell> </DataTemplate>


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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