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>
↧
How to switch contents of Masterdetail page on logging in
↧