mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Set services in blazor directly instead of routing them through the static resource
This commit is contained in:
parent
33965286fc
commit
71cbc118d7
@ -8,8 +8,7 @@
|
||||
mc:Ignorable="d"
|
||||
Title="MainWindow" Height="750" Width="1200" MinHeight="750" MinWidth="1200">
|
||||
<Grid Background="#121212">
|
||||
<blazor:BlazorWebView HostPage="wwwroot\index.html" Services="{StaticResource services}"
|
||||
x:Name="blazorWebView1">
|
||||
<blazor:BlazorWebView HostPage="wwwroot\index.html" x:Name="BlazorWebView">
|
||||
<blazor:BlazorWebView.RootComponents>
|
||||
<blazor:RootComponent Selector="#app" ComponentType="{x:Type local:Main}" />
|
||||
</blazor:BlazorWebView.RootComponents>
|
||||
|
@ -20,8 +20,8 @@ public partial class MainWindow
|
||||
_logger = logger;
|
||||
_loggerProvider = loggerProvider;
|
||||
_systemParams = systemParams;
|
||||
Resources.Add("services", serviceProvider);
|
||||
InitializeComponent();
|
||||
BlazorWebView.Services = serviceProvider;
|
||||
|
||||
try
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user