基于WebView2实现的Win11桌面框架,利用插件自定义
Moli
2026-05-05 4df6165fa93c7caeea86385312415e312de4d11f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<Window x:Class="Moli.Desktop.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Moli.Desktop"
        mc:Ignorable="d"
        Title="Moli Desktop" Height="360" Width="560">
    <Grid Margin="24">
        <StackPanel VerticalAlignment="Center">
            <TextBlock Text="Moli Desktop" FontSize="28" FontWeight="SemiBold" />
            <TextBlock Text="MVP foundation is running." Margin="0,8,0,0" />
        </StackPanel>
    </Grid>
</Window>