精简manifest引用,自定义titlebar

This commit is contained in:
Steven Hobs
2026-02-13 00:13:27 +08:00
parent b03db7ac51
commit 5904b03264
7 changed files with 22 additions and 13 deletions

View File

@@ -4,15 +4,23 @@
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:local="using:MyApp"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:winex="using:WinUIEx"
Title="MainWindow"
mc:Ignorable="d">
<Window.SystemBackdrop>
<MicaBackdrop />
</Window.SystemBackdrop>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock>Pure WinUI3</TextBlock>
<TextBlock>None</TextBlock>
</StackPanel>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TitleBar x:Name="AppTitleBar" Title="{x:Bind Title}">
<TitleBar.IconSource>
<ImageIconSource ImageSource="/Assets/Logo/app_64.png" />
</TitleBar.IconSource>
</TitleBar>
</Grid>
</winex:WindowEx>