Click here to Skip to main content
15,914,074 members
Home / Discussions / WPF
   

WPF

 
QuestionRe: combobox usage Pin
Mark Salsbery7-Oct-09 7:22
Mark Salsbery7-Oct-09 7:22 
Questioncan we use wpf controls in window's application . Pin
Anuj Banka6-Oct-09 19:35
Anuj Banka6-Oct-09 19:35 
AnswerRe: can we use wpf controls in window's application . Pin
Pete O'Hanlon6-Oct-09 21:47
mvePete O'Hanlon6-Oct-09 21:47 
GeneralRe: can we use wpf controls in window's application . Pin
Anuj Banka6-Oct-09 21:54
Anuj Banka6-Oct-09 21:54 
GeneralRe: can we use wpf controls in window's application . Pin
Christian Graus6-Oct-09 22:11
protectorChristian Graus6-Oct-09 22:11 
GeneralRe: can we use wpf controls in window's application . Pin
Pete O'Hanlon6-Oct-09 22:55
mvePete O'Hanlon6-Oct-09 22:55 
GeneralRe: can we use wpf controls in window's application . Pin
Anuj Banka6-Oct-09 23:11
Anuj Banka6-Oct-09 23:11 
QuestionCustom scrolling in WPF control Pin
grvdarji6-Oct-09 11:51
grvdarji6-Oct-09 11:51 
QuestionRe: Custom scrolling in WPF control Pin
Mark Salsbery7-Oct-09 7:41
Mark Salsbery7-Oct-09 7:41 
AnswerRe: Custom scrolling in WPF control Pin
grvdarji8-Oct-09 5:10
grvdarji8-Oct-09 5:10 
GeneralRe: Custom scrolling in WPF control Pin
Mark Salsbery9-Oct-09 6:26
Mark Salsbery9-Oct-09 6:26 
GeneralRe: Custom scrolling in WPF control Pin
grvdarji9-Oct-09 10:45
grvdarji9-Oct-09 10:45 
QuestionUsing Aero theme in WPF Pin
Etienne_1236-Oct-09 10:59
Etienne_1236-Oct-09 10:59 
AnswerRe: Using Aero theme in WPF Pin
Pete O'Hanlon6-Oct-09 11:14
mvePete O'Hanlon6-Oct-09 11:14 
AnswerRe: Using Aero theme in WPF Pin
Ian Shlasko6-Oct-09 11:16
Ian Shlasko6-Oct-09 11:16 
GeneralRe: Using Aero theme in WPF Pin
Pete O'Hanlon6-Oct-09 11:21
mvePete O'Hanlon6-Oct-09 11:21 
Questionhow to use List as a parameter in a call to a web service? Pin
CBenac6-Oct-09 10:57
CBenac6-Oct-09 10:57 
AnswerRe: how to use List as a parameter in a call to a web service? Pin
CBenac6-Oct-09 13:17
CBenac6-Oct-09 13:17 
GeneralRe: how to use List as a parameter in a call to a web service? Pin
VCsamir6-Oct-09 20:16
VCsamir6-Oct-09 20:16 
GeneralRe: how to use List as a parameter in a call to a web service? Pin
CBenac7-Oct-09 3:44
CBenac7-Oct-09 3:44 
GeneralRe: how to use List as a parameter in a call to a web service? Pin
Mark Salsbery7-Oct-09 7:31
Mark Salsbery7-Oct-09 7:31 
GeneralRe: how to use List as a parameter in a call to a web service? Pin
CBenac7-Oct-09 14:10
CBenac7-Oct-09 14:10 
GeneralRe: how to use List as a parameter in a call to a web service? Pin
Mark Salsbery7-Oct-09 15:22
Mark Salsbery7-Oct-09 15:22 
GeneralRe: how to use List as a parameter in a call to a web service? Pin
CBenac8-Oct-09 6:02
CBenac8-Oct-09 6:02 
Mark,

I think the problem may be that the parameter is not been initialized correct in the client side. Would it be possible to show an example on how to call it from the client side?

Here is how it's been called:

            //ObservableCollection<People> people = new ObservableCollection<People>();
            List<People> people = new List<People>();

            private void btnTestList_Click(object sender, RoutedEventArgs e)
            {
                  ServiceReference1.Service1Client proxy2 = new AppListParam.ServiceReference1.Service1Client();
                  proxy2.SetListCompleted += new EventHandler<AppListParam.ServiceReference1.SetListCompletedEventArgs>(proxy2_SetListCompleted);
                  proxy2.SetListAsync(people);
            }

            void proxy2_SetListCompleted(object sender, AppListParam.ServiceReference1.SetListCompletedEventArgs e)
            {
                  MessageBox.Show(e.Result);
            }
      }

      public class People
      {
            public string Name;
            public int Age;
      }





Now, in another issue, why the code in my SL3 is generated different from the one in your example? There is no interface as you can see.

   [ServiceContract(Namespace = "")]
      [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
      public class Service1
      {

            [OperationContract]
            public string SetList(List<People> people)
            {
                  // Add your operation implementation here
                  return "OK";
            }

            // Add more operations here and mark them with [OperationContract]
      }

      public class People
      {
            public string Name;
            public int Age;
      }
GeneralRe: how to use List as a parameter in a call to a web service? Pin
Mark Salsbery8-Oct-09 10:14
Mark Salsbery8-Oct-09 10:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.