Page.xaml
Page.xaml.cs
{
GetUser();
}
}
}
WebService中仅包含一个返回List<User>的GetUser();
PS:在Silverlight中并不包含DataGrid,如需使用,请引用System.Windows.Controls.Data
并且在Page.xaml中声明
xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"