Files
WpfExtended/WpfExtended.Blazor/Launch/BlazorHostWindow.xaml
T
2026-01-06 16:26:06 +01:00

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>