XamlTypeInfo.g.cpp Implementation Type Referenced But Not #included #7931
-
I'm following this tutorial and the single property tutorial: https://learn.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/binding-collection I declare a simple runtimeclass in .idl and create the code, and everything builds fine. I want to bind a togglebutton DataTemplate to the string in the runtime class and a collection of the class to the ItemsSource of the associated ComboBox. But when I use the runtimeclass in idl as the template type T of IObservableCollection I get an error in XamlTypeInfo.g.cpp where the implementation type of the runtimeclass is being referenced but there is no header file included. It only happens when I use the runtimeclass as the template type T. The tutorial is basic and I'm really at a loss as to what I'm doing wrong. idl namespace Duality23 xaml ComboBox x:Name="FilterList" idl import "UserFilter.idl"; Pretty simple. errors 1>..\Generated Files\XamlTypeInfo.g.cpp(939,60): error C2039: 'UserFilter': is not a member of 'winrt::Duality23::implementation' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It was an internal issue with Visual Studio resolved when VS was restarted. [resolved] |
Beta Was this translation helpful? Give feedback.
It was an internal issue with Visual Studio resolved when VS was restarted. [resolved]