Search code examples
xamarin.formsuwpmvvmcross

MvvmCross 6.0 UWP dependency


I'm trying to make dependency on UWP by this tutorial https://www.mvvmcross.com/documentation/platform/uwp/universal-windows-platform-uwp?scroll=621

but on this step in Setup.cs: public Setup( Frame rootFrame ) : base( rootFrame ){}

I get an errorenter image description here

does anybody have an idea why??

Dependency on Android works well


Solution

  • Solution

    App.xaml.cs

    public partial class App
    {
        public App()
        {
            InitializeComponent();
        }
    }
    public abstract class AWSService : MvxApplication<Setup, Core.App>
    { }
    

    Setup.cs

    public class Setup : MvxWindowsSetup<Core.App>
    {
        public Setup()
        { }
    
        protected override IMvxApplication CreateApp()
        {
            Mvx.IoCProvider.RegisterType<IYourInterface, YourNativeClass>();
            return new Core.App();
        }
    }