Reputation: 18036
I have Windows 10 target version Build 17134 and Min version is Creators Update Build 15063
I have Microsoft.UI.Xaml 2.0.18091 installed via Nuget Package Manager
Running VS2017 15.8.6
But I cannot see a TreeView control in the toolbox
[Update]
When I try to paste in Xaml from the docs I get an error
XAML1104 The type 'TreeViewNode' is not available in the target platform minimum version (10.0.15063.0) supported by this project
[Update]
I have windows version 1809 and build 17763
I have SDK 10.0.17763
However the only treeview in the tool box is Microsoft.UI.Xaml.Controls
Upvotes: 3
Views: 581
Reputation: 39072
You project must have a min SDK version of 15063 to use TreeView
. You can change the project target by right-clicking the project node in Solution Explorer, going to Properties and modifying the two appropriate dropdowns on the first tab.
However, you can now actually use TreeView
control in earlier versions by virtue of the Windows UI library, which contains latest controls with backporting to older versions.
Upvotes: 2
Reputation: 8591
XAML1104 The type 'TreeViewNode' is not available in the target platform minimum version (10.0.15063.0) supported by this project
The TreeViewNode class is introduced from Windows 10, Build 17134, it's not available in 15063.
The error message also has explained it. You need to make your project's target/min version is 17134 or higher.
Upvotes: 4