Skip to content

Commit

Permalink
Open generic pages and double tabs navigation (#1943)
Browse files Browse the repository at this point in the history
* Ignore open generic pages on auto registration process
  • Loading branch information
JeremyBP authored and dansiegel committed Nov 11, 2019
1 parent cd70be5 commit 90828a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Xamarin/Prism.Forms/Ioc/TypeAutoLoadExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void AutoRegisterViews(this Type type, IContainerRegistry containe
var regAttr = type.GetCustomAttribute<AutoRegisterForNavigationAttribute>();
var assembly = type.Assembly;

var viewTypes = assembly.ExportedTypes.Where(t => t.IsSubclassOf(typeof(Page)));
var viewTypes = assembly.ExportedTypes.Where(t => t.IsSubclassOf(typeof(Page)) && !t.GetTypeInfo().IsGenericTypeDefinition && !t.GetTypeInfo().ContainsGenericParameters);
RegisterViewsAutomatically(containerRegistry, viewTypes);
}

Expand Down

0 comments on commit 90828a1

Please sign in to comment.