From 3d2b29cc2c7abcff1d064a9ab541759224d046e1 Mon Sep 17 00:00:00 2001 From: "Gordon Lam (SH)" Date: Mon, 13 Apr 2026 16:03:45 +0800 Subject: [PATCH] Add missing App.InitializeComponent() call in WinUI sample Without InitializeComponent(), XAML resources may not load properly. Fixes ADO #61791038 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Samples/WindowsML/cs-winui/App.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Samples/WindowsML/cs-winui/App.xaml.cs b/Samples/WindowsML/cs-winui/App.xaml.cs index 5daafe19a..cb3f1fc38 100644 --- a/Samples/WindowsML/cs-winui/App.xaml.cs +++ b/Samples/WindowsML/cs-winui/App.xaml.cs @@ -11,6 +11,11 @@ namespace WindowsMLSample { public partial class App : Application { + public App() + { + this.InitializeComponent(); + } + protected override void OnLaunched(LaunchActivatedEventArgs args) { Window = new MainWindow();