From 73e00809d8f46690c8f64f646f2c3059ccec6145 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 19 Apr 2022 15:30:59 +0200 Subject: [PATCH] Fix title bar in WinUI 3 sample, update to WASDK 1.0.3 --- samples/ComputeSharp.SwapChain.WinUI/App.xaml | 6 ++++++ .../ComputeSharp.SwapChain.WinUI.csproj | 3 +-- .../Views/MainWindow.xaml | 14 +------------- .../Views/MainWindow.xaml.cs | 6 ------ 4 files changed, 8 insertions(+), 21 deletions(-) diff --git a/samples/ComputeSharp.SwapChain.WinUI/App.xaml b/samples/ComputeSharp.SwapChain.WinUI/App.xaml index 6429e2e4..27b27547 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/App.xaml +++ b/samples/ComputeSharp.SwapChain.WinUI/App.xaml @@ -6,6 +6,12 @@ + + + + + + diff --git a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj index f9267f0c..f4dc10e2 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj +++ b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj @@ -32,8 +32,7 @@ - - + diff --git a/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml b/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml index 8d667e66..3fb1bb54 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml +++ b/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml @@ -217,22 +217,10 @@ - - - diff --git a/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml.cs b/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml.cs index e438abc2..4683b3f5 100644 --- a/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml.cs +++ b/samples/ComputeSharp.SwapChain.WinUI/Views/MainWindow.xaml.cs @@ -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(); - } }