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
C++ WinUI 3 examples are really scarce.
I need to initialize the following code: sourceList().ItemsSource(sourceArray);
struct MainWindow : MainWindowT<MainWindow>
{
MainWindow()
{
// Xaml objects should not call InitializeComponent during construction.
// See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent
//When I initialize here, an error occurs. I think it's because the component is not fully initialized.
sourceList().ItemsSource(sourceArray);
}
...
Where should I elegantly and right implement the initialization of this code?
The text was updated successfully, but these errors were encountered:
C++ WinUI 3 examples are really scarce.
I need to initialize the following code:
sourceList().ItemsSource(sourceArray);
Where should I elegantly and right implement the initialization of this code?
The text was updated successfully, but these errors were encountered: