From af575c24f8575e2158d6f1c336d1bf1259ecdc69 Mon Sep 17 00:00:00 2001 From: Carl de Billy Date: Mon, 27 May 2019 11:05:07 -0400 Subject: [PATCH] Turn on the "xamlName" output in DOM --- src/Calculator.Wasm/Program.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Calculator.Wasm/Program.cs b/src/Calculator.Wasm/Program.cs index f6e3e9b9..122fbaa8 100644 --- a/src/Calculator.Wasm/Program.cs +++ b/src/Calculator.Wasm/Program.cs @@ -3,6 +3,7 @@ using Microsoft.Extensions.Logging; using System; using Uno.Extensions; using Windows.UI.Xaml; +using Uno.UI; namespace WindowsCalculator.Wasm { @@ -14,7 +15,10 @@ namespace WindowsCalculator.Wasm { Console.WriteLine("Program.Main"); - Windows.UI.Xaml.Application.Start(_ => _app = new App()); + FeatureConfiguration.UIElement.AssignDOMXamlName = true; + + + Windows.UI.Xaml.Application.Start(_ => _app = new App()); } } }