mirror of
https://github.com/AlexMacocian/WpfExtended.git
synced 2026-07-15 14:59:30 +00:00
27 lines
1.2 KiB
XML
27 lines
1.2 KiB
XML
<Window
|
|
x:Class="WpfExtended.Blazor.Launch.BlazorHostWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:blazor="clr-namespace:Microsoft.AspNetCore.Components.WebView.Wpf;assembly=Microsoft.AspNetCore.Components.WebView.Wpf"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:WpfExtended.Blazor.Launch"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:shell="clr-namespace:System.Windows.Shell;assembly=PresentationFramework"
|
|
x:Name="_this"
|
|
Title="BlazorHostWindow"
|
|
Width="800"
|
|
Height="450"
|
|
mc:Ignorable="d">
|
|
<shell:WindowChrome.WindowChrome>
|
|
<WindowChrome x:Name="WindowChrome" />
|
|
</shell:WindowChrome.WindowChrome>
|
|
<blazor:BlazorWebView
|
|
x:Name="BlazorWebView"
|
|
HostPage="{Binding ElementName=_this, Path=HostPage, Mode=OneWay}"
|
|
Services="{Binding ElementName=_this, Path=Services, Mode=OneWay}">
|
|
<blazor:BlazorWebView.RootComponents>
|
|
<blazor:RootComponent x:Name="RootComponent" Selector="#app" />
|
|
</blazor:BlazorWebView.RootComponents>
|
|
</blazor:BlazorWebView>
|
|
</Window>
|