Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Controls not showing in masterdetail Page

$
0
0

I have an issue, my controls(button, entry) not showing when I am using navigation page but toolbar and menu showing. Without the navigation page, the controls appear but the menu disappears.
In App.cs

public App() => MainPage = new RootPage();

In RootPage.cs

class RootPage : MasterDetailPage
{
.....
Detail =new NavigationPage(new MathInputPage());
....
void OnItemSelectedAsync(object sender, SelectedItemChangedEventArgs e)
{
    .....
     Detail.Navigation.PushAsync((Page)Activator.CreateInstance(item.TargetType));
    ......
}
}

Above code, the menu, as well as the back button, is shown. But controls not showing.

Then I altered this code into
In RootPage.cs

class RootPage : MasterDetailPage
{
.....
Detail =new MathInputPage();
....
void OnItemSelectedAsync(object sender, SelectedItemChangedEventArgs e)
{
    .....
     Detail=(Page)Activator.CreateInstance(item.TargetType);
    ......
}
}

Viewing all articles
Browse latest Browse all 204402

Trending Articles



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