xamarin / urho-samples

Samples for the Urho bindings
MIT License
384 stars 491 forks source link

FaceDetection fails to compile because a UrhoSurface name conflict #40

Open vpenades opened 7 years ago

vpenades commented 7 years ago

Inside MainPage.xaml we have this line: <uwp:UrhoSurface Name="UrhoSurface" ... which is used in MainPage.cs like this: urhoApp = UrhoSurface.Run<UrhoApp>();

As it happens, Urho also has a UrhoSurface class which conflicts with the naming of the xaml control.

It can be easily solved by renaming the control to something else:

<uwp:UrhoSurface Name="UrhoSurfaceCtrl" ... urhoApp = UrhoSurfaceCtrl.Run<UrhoApp>();