void UpdateDetailPage(object sender, SelectedItemChangedEventArgs e) { var item = e.SelectedItem as MasterMenuItem; if (item == null) { return; } Detail = new PDPNavigationPage((Page)Activator.CreateInstance(item.TargetType)); ResetMenu(); }
void UpdateDetailPage(MenuPage arg1, Type arg2) { Detail = new PDPNavigationPage((Page)Activator.CreateInstance(arg2)); ResetMenu(); }