Click here to Skip to main content
16,003,746 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: MVVM Question Pin
Abhinav S14-Feb-11 18:21
Abhinav S14-Feb-11 18:21 
GeneralRe: MVVM Question Pin
_Maxxx_14-Feb-11 18:55
professional_Maxxx_14-Feb-11 18:55 
GeneralRe: MVVM Question [modified] Pin
SledgeHammer0115-Feb-11 7:31
SledgeHammer0115-Feb-11 7:31 
AnswerRe: MVVM Question Pin
BubingaMan22-Feb-11 0:05
BubingaMan22-Feb-11 0:05 
GeneralRe: MVVM Question Pin
_Maxxx_22-Feb-11 13:41
professional_Maxxx_22-Feb-11 13:41 
GeneralRe: MVVM Question Pin
BubingaMan22-Feb-11 22:04
BubingaMan22-Feb-11 22:04 
GeneralRe: MVVM Question Pin
_Maxxx_23-Feb-11 12:47
professional_Maxxx_23-Feb-11 12:47 
QuestionHow to return the value in Silverlight? [modified] Pin
Tesic Goran13-Feb-11 22:52
professionalTesic Goran13-Feb-11 22:52 
Hello,

I'm new in Silverlight and have 2 questions:

1) I wrote some function in WPF. It looks as follows:

void F()
{
  List<string> lstSubsystems = client.GetSubsystemsByTestRunID(testRunID).ToList();
  foreach (string subsystemName in lstSubsystems)
}


As you can see, I call some function from WCF service, which returns the list. After that I use that list further. Of course, it works fine.

There's a problem in Silverlight. I'm trying to do this:

List<string> lstSubsystems = null;

void F()
{
  client.GetSubsystemsByTestRunIDCompleted +=
   new EventHandler<GetSubsystemsByTestRunIDCompletedEventArgs>(client_GetSubsystemsByTestRunIDCompleted);
  client.GetSubsystemsByTestRunIDAsync(testRunID);
  foreach (string subsystemName in lstSubsystems)
}

private void client_GetSubsystemsByTestRunIDCompleted(object sender, GetSubsystemsByTestRunIDCompletedEventArgs e)
{
  lstSubsystems = new List<string>();
  if (e.Result != null)
    lstSubsystems = e.Result;
}


But, the last function is not executed.

How can I do that in Silverlight?

2) How can I sort the items under some node in Silverlight tree view?

Thank you in advance.


Regards,

Goran

modified on Monday, February 14, 2011 5:41 AM

AnswerRe: How to return the value in Silverlight? Pin
Pete O'Hanlon14-Feb-11 0:32
mvePete O'Hanlon14-Feb-11 0:32 
GeneralRe: How to return the value in Silverlight? Pin
Tesic Goran14-Feb-11 0:56
professionalTesic Goran14-Feb-11 0:56 
GeneralRe: How to return the value in Silverlight? Pin
Pete O'Hanlon14-Feb-11 0:58
mvePete O'Hanlon14-Feb-11 0:58 
GeneralRe: How to return the value in Silverlight? Pin
Tesic Goran14-Feb-11 2:04
professionalTesic Goran14-Feb-11 2:04 
GeneralRe: How to return the value in Silverlight? Pin
Mycroft Holmes14-Feb-11 13:32
professionalMycroft Holmes14-Feb-11 13:32 
GeneralRe: How to return the value in Silverlight? Pin
Tesic Goran14-Feb-11 19:29
professionalTesic Goran14-Feb-11 19:29 
GeneralRe: How to return the value in Silverlight? Pin
Tesic Goran14-Feb-11 22:12
professionalTesic Goran14-Feb-11 22:12 
GeneralRe: How to return the value in Silverlight? Pin
Mycroft Holmes14-Feb-11 23:14
professionalMycroft Holmes14-Feb-11 23:14 
GeneralRe: How to return the value in Silverlight? Pin
Tesic Goran15-Feb-11 0:28
professionalTesic Goran15-Feb-11 0:28 
GeneralRe: How to return the value in Silverlight? Pin
Mycroft Holmes15-Feb-11 13:27
professionalMycroft Holmes15-Feb-11 13:27 
GeneralRe: How to return the value in Silverlight? Pin
Pete O'Hanlon16-Feb-11 7:37
mvePete O'Hanlon16-Feb-11 7:37 
GeneralRe: How to return the value in Silverlight? Pin
Tesic Goran17-Feb-11 1:27
professionalTesic Goran17-Feb-11 1:27 
GeneralRe: How to return the value in Silverlight? Pin
Tesic Goran17-Feb-11 3:18
professionalTesic Goran17-Feb-11 3:18 
GeneralRe: How to return the value in Silverlight? Pin
Pete O'Hanlon17-Feb-11 8:44
mvePete O'Hanlon17-Feb-11 8:44 
Questionwpf mvvm pattern Checkboxes to be checked by default. Pin
Himanshu0614198213-Feb-11 20:40
Himanshu0614198213-Feb-11 20:40 
AnswerRe: wpf mvvm pattern Checkboxes to be checked by default. Pin
Abhinav S13-Feb-11 21:15
Abhinav S13-Feb-11 21:15 
QuestionOpacityMask Brush Pin
HoltDan12-Feb-11 6:14
HoltDan12-Feb-11 6: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.