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

Xamarin Forms Master/Detail many pages (ContentPage)

$
0
0

Hi to all,
It is my 1st attempt in Master/Detail for Xamarin forms, so sorry for my newbie questions.
I have made a MasterDetailPage my code :

</p> <pre><code><MasterDetailPage.Master > <ContentPage Title="aaa"> <ContentPage.Content> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Button x:Name="SettingsBT" Grid.Row="1" Text="Ρυθμίσεις" Clicked="SettingsBT_Clicked" /> <Button x:Name="AboutBT" Grid.Row="2" Text="About" Clicked="AboutBT_Clicked" /> </Grid> </ContentPage.Content> </ContentPage> </MasterDetailPage.Master> <MasterDetailPage.Detail> <views:DetailPage /> </MasterDetailPage.Detail>

In my Master Page I have 2-3 buttons which I want to open ContentPages for my App SettingsPage, AboutPage etc.
In my Code behind I cannot have "Navigation.PushAsync" because Xamarin complains about not being "NavigationPage".
How can I have several pages from Master Page ?
Thanks in advance


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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