diff --git a/Samples/Native/MyApp/MainUserControl.cpp b/Samples/Native/MyApp/MainUserControl.cpp index 3128c39..33d0cd7 100644 --- a/Samples/Native/MyApp/MainUserControl.cpp +++ b/Samples/Native/MyApp/MainUserControl.cpp @@ -1,5 +1,6 @@ #include "pch.h" #include "MainUserControl.h" +#include using namespace winrt; using namespace Windows::UI::Xaml; @@ -10,15 +11,21 @@ namespace winrt::MyApp::implementation { InitializeComponent(); + for (int i = 0; i < 800; i++) { + auto child = winrt::make(L"Label", winrt::Windows::Foundation::Uri{ nullptr }, L""); + + treeView().Nodes().Append(child); + } } winrt::hstring MainUserControl::MyProperty() { - return userControl().MyProperty(); + return hstring{}; + // return userControl().MyProperty(); } void MainUserControl::MyProperty(winrt::hstring value) { - userControl().MyProperty(value); + // userControl().MyProperty(value); } } diff --git a/Samples/Native/MyApp/MainUserControl.xaml b/Samples/Native/MyApp/MainUserControl.xaml index f910969..8203f3e 100644 --- a/Samples/Native/MyApp/MainUserControl.xaml +++ b/Samples/Native/MyApp/MainUserControl.xaml @@ -10,11 +10,7 @@ XYFocusKeyboardNavigation="Enabled" mc:Ignorable="d"> - - - - - - + + diff --git a/Samples/Native/MyApp/MyApp.vcxproj b/Samples/Native/MyApp/MyApp.vcxproj index a9dd134..c35221c 100644 --- a/Samples/Native/MyApp/MyApp.vcxproj +++ b/Samples/Native/MyApp/MyApp.vcxproj @@ -343,21 +343,21 @@ - + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + - + \ No newline at end of file diff --git a/Samples/Native/MyApp/MyApp.vcxproj.filters b/Samples/Native/MyApp/MyApp.vcxproj.filters index e5b1052..c3bc84d 100644 --- a/Samples/Native/MyApp/MyApp.vcxproj.filters +++ b/Samples/Native/MyApp/MyApp.vcxproj.filters @@ -58,4 +58,4 @@ - + \ No newline at end of file diff --git a/Samples/Native/MyApp/TreeViewHostUserControl.xaml b/Samples/Native/MyApp/TreeViewHostUserControl.xaml index 7210182..e806705 100644 --- a/Samples/Native/MyApp/TreeViewHostUserControl.xaml +++ b/Samples/Native/MyApp/TreeViewHostUserControl.xaml @@ -11,7 +11,11 @@ - + + + + + diff --git a/Samples/Native/MyApp/packages.config b/Samples/Native/MyApp/packages.config index d0b7629..a7c85e4 100644 --- a/Samples/Native/MyApp/packages.config +++ b/Samples/Native/MyApp/packages.config @@ -1,7 +1,7 @@  - + \ No newline at end of file