Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed issue which triggered AmbiguousMatchException #227
In the ViewLocator for UWP apps, this line of code triggered an AmbiguousMatchException
In UWP apps, there are two methods called "InitializeComponent" for device specific family views, but one takes a Uri as a parameter, so when you call GetDeclaredMethod it will throw that exception.
I fixed this by calling GetDeclaredMethods() and choosing the first one, which doesn't have the Uri parameter.