Dreamine.Web
1.0.0.0
WPF와 Blazor를 한 코드 흐름으로 연결하고 반복적인 MVVM 코드를 줄이는 오픈소스 FullKit 공식 웹 애플리케이션입니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
App.xaml.cs
이 파일의 문서화 페이지로 가기
1
using
Dreamine.Hybrid.Wpf.Hosting;
2
using
Dreamine.Hybrid.Wpf.Interfaces;
3
using
Microsoft.Extensions.DependencyInjection;
4
using
System.Windows;
5
6
namespace
DreamineWeb
;
7
16
public
partial class
App
: Application, IDreamineServiceProviderAware
17
{
26
public
static
IServiceProvider?
ServiceProvider
{
get
;
private
set
; }
27
52
public
void
SetServiceProvider
(IServiceProvider serviceProvider)
53
{
54
ServiceProvider
= serviceProvider ??
throw
new
ArgumentNullException(nameof(serviceProvider));
55
}
56
81
protected
override
void
OnStartup
(StartupEventArgs e)
82
{
83
base.OnStartup(e);
84
85
if
(
ServiceProvider
is
null
)
86
throw
new
InvalidOperationException(
"ServiceProvider was not initialized before WPF startup."
);
87
88
var window =
ServiceProvider
.GetRequiredService<
Views
.
MainWindow
>();
89
MainWindow = window;
90
window.Show();
91
}
92
}
DreamineWeb
Definition
App.xaml.cs:6
DreamineWeb.Views
Definition
MainWindow.xaml.cs:8
DreamineWeb.App
Definition
App.xaml.cs:17
DreamineWeb.App.OnStartup
override void OnStartup(StartupEventArgs e)
Definition
App.xaml.cs:81
DreamineWeb.App.SetServiceProvider
void SetServiceProvider(IServiceProvider serviceProvider)
Definition
App.xaml.cs:52
DreamineWeb.App.ServiceProvider
static ? IServiceProvider ServiceProvider
Definition
App.xaml.cs:26
DreamineWeb.Views.MainWindow
Definition
MainWindow.xaml.cs:19
App.xaml.cs
다음에 의해 생성됨 :
1.17.0