我有一个具有WCF服务的silverlight项目。当我选择treeview的项目时,WCF服务方法应该触发但不能。
DataProcessServiceClient k = new DataProcessServiceClient();
k.GetPersonByIdCompleted += k_GetPersonByIdCompleted;
k.GetPersonByIdAsync("1");
void k_GetPersonByIdCompleted(object sender, GetPersonByIdCompletedEventArgs e)
{
secilenPersonel = e.Result as Personel;
lblHarita.Content = secilenPersonel.tckNo.ToString();
}