其他分享
首页 > 其他分享> > WPF ObjectDataProvider

WPF ObjectDataProvider

作者:互联网

<Window.Resources>    <ObjectDataProvider x:Key="personList" ObjectType="{x:Type models:Person}">        <ObjectDataProvider.MethodParameters>            <models:Person>                <models:Person.Name>吴南models:Person.Name>                <models:Person.Age>20models:Person.Age>                <models:Person.Hometown>成都models:Person.Hometown>            models:Person>            <models:Person>                <models:Person.Name>刘艳models:Person.Name>                <models:Person.Age>21models:Person.Age>                <models:Person.Hometown>北京models:Person.Hometown>            models:Person>            <models:Person>                <models:Person.Name>刘芸models:Person.Name>                <models:Person.Age>19models:Person.Age>                <models:Person.Hometown>上海models:Person.Hometown>            models:Person>        ObjectDataProvider.MethodParameters>    ObjectDataProvider>Window.Resources>

标签:Name,models,Hometown,Age,Person,ObjectDataProvider,WPF
来源: https://blog.51cto.com/u_15180952/2732431