diff --git a/samples/ComputeSharp.SwapChain.D2D1.CoreWindow/Backend/CoreWindowApplicationRunner.cs b/samples/ComputeSharp.SwapChain.D2D1.CoreWindow/Backend/CoreWindowApplicationRunner.cs index 20772756..4d1a868d 100644 --- a/samples/ComputeSharp.SwapChain.D2D1.CoreWindow/Backend/CoreWindowApplicationRunner.cs +++ b/samples/ComputeSharp.SwapChain.D2D1.CoreWindow/Backend/CoreWindowApplicationRunner.cs @@ -39,6 +39,9 @@ internal static class CoreWindowApplicationRunner // This allows the app to show up while already drawing. renderThread.Start((application, tokenSource.Token)); + // Register a callback to monitor resize operations + window.ResizeCompleted += (s, e) => application.OnResize(); + // Activate the window window.Activate();