You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Named elements appear only in code-behind Intellisense after building the project. Looks like the intermediate output folder is not generated/updated when editing the XAML doc.
Steps to reproduce the bug
Create a new WinUI 3.0 UWP app
Add this TextBox to the MainPage.xaml file
<TextBox x:Name="textBox"/>
Save the file
Go to MainPage.xaml.cs and go to the constructor.
Type "textB", you don't get intellisense.
Build the project. Then you get intellisense.
Further tests: Go to the obj folder and navigate down to the MainPage.g.i.cs that contains the textBox field. Change the name of the textBox in the MainPage.xaml file to something else. Note that the MainPage.g.i.cs won't update after this change. The MainPage.g.i.cs file only updates after building the project.
Expected behavior
When changing the MainPage.xaml file, the MainPage.g.i.cs should be generated automatically, so that named elements can be accessed in the codebehind file without manually building the project.
Version Info
OS: Windows 10 1903
NuGet package version: Microsoft.WinUI 3.0.0-alpha.191101.0
The text was updated successfully, but these errors were encountered:
@jevansaks@danzil@kmahone
I tried this with WinUI 3 Preview 3 and Visual Studio 2019 16.9 Preview 1, not reproducable there anymore, which means it has been solved in the meantime. I close this issue. Thanks!
Describe the bug
Named elements appear only in code-behind Intellisense after building the project. Looks like the intermediate output folder is not generated/updated when editing the XAML doc.
Steps to reproduce the bug
Build the project. Then you get intellisense.
Further tests: Go to the obj folder and navigate down to the MainPage.g.i.cs that contains the textBox field. Change the name of the textBox in the MainPage.xaml file to something else. Note that the MainPage.g.i.cs won't update after this change. The MainPage.g.i.cs file only updates after building the project.
Expected behavior
When changing the MainPage.xaml file, the MainPage.g.i.cs should be generated automatically, so that named elements can be accessed in the codebehind file without manually building the project.
Version Info
OS: Windows 10 1903
NuGet package version: Microsoft.WinUI 3.0.0-alpha.191101.0
The text was updated successfully, but these errors were encountered: