我有一个MvvmCross 6.2.3 WPF应用程序,该应用程序可以构建和运行,但没有显示视图。我没有使用自定义viewpresenter,而是依靠默认视图。该应用程序具有一个MainWindow和一些MxvWpfView派生的视图。如何显示我的观点?
我的课程如下:
MainWindow.xaml.cs
public partial class MainWindow : MvxWindow
{
public MainWindow()
{
InitializeComponent();
}
}
UsersView.xaml.cs
public partial class UsersView : MvxWpfView
{
public UsersView()
{
InitializeComponent();
}
}
App.xaml.cs
public partial class App : MvxApplication
{
protected override void RegisterSetup()
{
this.RegisterSetupType<MvxWpfSetup<Core.App>>();
}
}
Accounting.Core.App.cs
public class App: MvxApplication
{
public override void Initialize()
{
CreatableTypes()
.EndingWith("Service")
.AsInterfaces()
.RegisterAsLazySingleton();
CreatableTypes()
.EndingWith("Repository")
.AsInterfaces()
.RegisterAsLazySingleton();
RegisterAppStart<UsersViewModel>();
}
}