Fix title bar in WinUI 3 sample, update to WASDK 1.0.3
このコミットが含まれているのは:
1 親
76d9fcc2d8
コミット
73e00809d8
4ファイル変更
+8
-21
検索条件に一致するファイルはありません
@@ -6,6 +6,12 @@
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
|
||||
<ResourceDictionary>
|
||||
|
||||
<!-- Override the title bar colors to keep it transparent -->
|
||||
<SolidColorBrush x:Key="WindowCaptionBackground" Color="Transparent"/>
|
||||
<SolidColorBrush x:Key="WindowCaptionBackgroundDisabled" Color="Transparent"/>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
|
||||
@@ -32,8 +32,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
|
||||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22504-preview" />
|
||||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.3" />
|
||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0-preview1" />
|
||||
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Core" Version="7.1.2" />
|
||||
<PackageReference Include="CommunityToolkit.WinUI.UI.Media" Version="7.1.2" />
|
||||
|
||||
@@ -217,22 +217,10 @@
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Close button -->
|
||||
<Button
|
||||
Margin="48"
|
||||
Padding="20"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Top"
|
||||
Click="CloseButton_Click"
|
||||
CornerRadius="9999"
|
||||
ToolTipService.ToolTip="Close">
|
||||
<SymbolIcon Symbol="Cancel" />
|
||||
</Button>
|
||||
|
||||
<!-- Invisible title bar -->
|
||||
<Rectangle
|
||||
x:Name="TitleBarRectangle"
|
||||
Height="32"
|
||||
Height="28"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Top"
|
||||
Fill="Transparent" />
|
||||
|
||||
@@ -44,10 +44,4 @@ public sealed partial class MainWindow : Window
|
||||
{
|
||||
ShadersListContainerPanel.Height = Math.Round(e.Size.Height * 0.35);
|
||||
}
|
||||
|
||||
// Closes the app
|
||||
private void CloseButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
Application.Current.Exit();
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする