这是本人(QFord@QQ.COM)根据兴趣编写,不保证内容的完整性和准确性,并请勿用于任何商业用途。 仅在XAML 2009+适用 新建一个Person类对象: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WpfApplication1.BClass { class Person { public string FirstName { get; set; } public string LastName { get; set; } public Person(string firstName, string lastName) { FirstName = firstName; LastName = lastName; } } } ... xmlns:local="clr-namespace:WpfApplication1.BClass" ... <local:Person> <x:Arguments> <x:String>QFord</x:String> <x:String>Lin</x:String> </x:Arguments> </local:Person>