SampleEnterprise 1.0.0.0
SampleEnterprise 사용 방법을 보여 주는 예제 프로젝트입니다.
로딩중...
검색중...
일치하는것 없음
App.Customization.Sample.cs
이 파일의 문서화 페이지로 가기
1using Dreamine.MVVM.Core;
2using Dreamine.MVVM.Wpf;
3using System.Reflection;
4using SampleEnterprise.ViewModels;
5using SampleEnterprise.Views;
6using Dreamine.MVVM.Interfaces.Navigation;
7using Dreamine.MVVM.Locators.Wpf;
8
10{
27 public partial class App
28 {
45 static partial void RegisterBefore()
46 {
47 Assembly.Load("SampleEnterprise.ViewModels");
48 Assembly.Load("SampleEnterprise.Views");
49 Assembly.Load("SampleEnterprise.Events");
50 Assembly.Load("SampleEnterprise.Models");
51 }
52
77 static partial void ConfigureDreamine(DreamineWpfOptions options)
78 {
79 }
80
97 static partial void RegisterAfter()
98 {
99 }
100
117 static partial void ShowMainWindow()
118 {
119 var vm = DMContainer.Resolve<MainWindowViewModel>();
120 var view = new MainWindow
121 {
122 DataContext = vm
123 };
124
125 view.Loaded += (s, e) =>
126 {
127 var region = RegionBinderHelper.FindRegionControl(view, "SubPage");
128 if (region != null)
129 {
130 DMContainer.RegisterSingleton<INavigator>(new ContentControlNavigator(region));
131 }
132 };
133
134 view.Show();
135 }
136 }
137}
static partial void ConfigureDreamine(DreamineWpfOptions options)
static partial void RegisterAfter()
static partial void RegisterBefore()
static partial void ShowMainWindow()