WPF使用资源绑定自定义类型

废话很少说直接上代码: html 首先是设置资源以下:this <wpf:Person Name="FirstName" LastName="Last" x:Key="per"/> 绑定的对象,主要将PersonList属性绑定到Text上: <TextBlock Text="{Binding Source={StaticResource per},Path=PersonList[1].Name}
相关文章
相关标签/搜索