Issue with x:TypeArguments and generic List class in XAML
问题 I created the following markup for a loose XAML file. <StackPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"> <scg:List x:TypeArguments="sys:String"> HelloWorld </scg:List> </StackPanel> But I get this error when I run the loose XAML in IE: The tag 'List' does not exist in XML namespace 'clr