Click here to Skip to main content
15,915,328 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: (WPF) If Xaml That powerful? in real? Pin
Pete O'Hanlon15-Jul-09 1:08
mvePete O'Hanlon15-Jul-09 1:08 
GeneralRe: (WPF) If Xaml That powerful? in real? Pin
Christian Graus15-Jul-09 1:26
protectorChristian Graus15-Jul-09 1:26 
AnswerRe: (WPF) If Xaml That powerful? in real? Pin
Mark Salsbery15-Jul-09 6:54
Mark Salsbery15-Jul-09 6:54 
QuestionSilverlight UserControl [modified] Pin
GomathiR13-Jul-09 22:11
GomathiR13-Jul-09 22:11 
AnswerRe: Silverlight UserControl Pin
Michael Sync23-Jul-09 6:58
Michael Sync23-Jul-09 6:58 
QuestionHow to partially load controls in WPF Pages Pin
laprathab13-Jul-09 21:48
laprathab13-Jul-09 21:48 
AnswerRe: How to partially load controls in WPF Pages Pin
Pete O'Hanlon13-Jul-09 21:58
mvePete O'Hanlon13-Jul-09 21:58 
QuestionSilverlight file is not diplayed Pin
Rajeeeeee13-Jul-09 20:28
Rajeeeeee13-Jul-09 20:28 
AnswerRe: Silverlight file is not diplayed Pin
Mark Salsbery14-Jul-09 8:16
Mark Salsbery14-Jul-09 8:16 
GeneralRe: Silverlight file is not diplayed Pin
nizam babu30-Aug-09 22:49
nizam babu30-Aug-09 22:49 
QuestionMessage Removed Pin
13-Jul-09 10:59
professionalN_tro_P13-Jul-09 10:59 
AnswerRe: WPF animation background processing Pin
Christian Graus13-Jul-09 11:25
protectorChristian Graus13-Jul-09 11:25 
QuestionDataGrid Bindings not working Pin
Jacobus0113-Jul-09 4:06
Jacobus0113-Jul-09 4:06 
AnswerRe: DataGrid Bindings not working Pin
laprathab13-Jul-09 21:50
laprathab13-Jul-09 21:50 
GeneralRe: DataGrid Bindings not working Pin
Jacobus0113-Jul-09 22:36
Jacobus0113-Jul-09 22:36 
QuestionDisplaying Data fetched asyncronously Pin
Adriaan Davel12-Jul-09 20:27
Adriaan Davel12-Jul-09 20:27 
AnswerRe: Displaying Data fetched asyncronously Pin
Mark Salsbery15-Jul-09 10:13
Mark Salsbery15-Jul-09 10:13 
GeneralRe: Displaying Data fetched asyncronously Pin
Adriaan Davel15-Jul-09 19:46
Adriaan Davel15-Jul-09 19:46 
GeneralRe: Displaying Data fetched asyncronously Pin
Michael Sync23-Jul-09 7:03
Michael Sync23-Jul-09 7:03 
GeneralRe: Displaying Data fetched asyncronously Pin
Adriaan Davel23-Jul-09 19:52
Adriaan Davel23-Jul-09 19:52 
GeneralRe: Displaying Data fetched asyncronously Pin
Michael Sync23-Jul-09 20:11
Michael Sync23-Jul-09 20:11 
GeneralRe: Displaying Data fetched asyncronously Pin
Adriaan Davel23-Jul-09 21:32
Adriaan Davel23-Jul-09 21:32 
GeneralRe: Displaying Data fetched asyncronously Pin
Michael Sync24-Jul-09 2:23
Michael Sync24-Jul-09 2:23 
Adriaan Davel wrote:
There might be other mechanisms to achive this, I'm sure one of the CP experts will enlighten us...


yeah..


In our project, we are sharing the service classes that invoke the WCF proxy between Silverlight and WPF. So, it's really painful and we can't ensure one function does one thing. If we follow one function does one thing then the code will be very messy like this example below with a lot of lambda expression.

void GetAllDogOwners(){

var dogServiceClient = new DogServiceClient();

dogServiceClient.GetAllDogsCompleted += (sender, e) => {

var dogs = e.Result;

var ownerServiceClient = new DogOwnerService();

ownerServiceClient.GetAllOwnersCompleted += (sdr, result) => {

var owners = result.Result;

foreach(var owner in owners){
owner.Dogs = (from dog in dogs
join person in owners
on dog.DogId equals person.OwnerID
select dog).ToObservable();
}
};
ownerServiceClient.GetAllOwnersAsync()

};
dogServiceClient.GetAllDogsAsync();
}

If I make if

void GetAllDogOwners(){
var dogServiceClient = new DogServiceClient();
dogServiceClient.GetAllDogsCompleted += new delegate(OnGetAllDogsCompleted);
dogServiceClient.GetAllDogsAsync();
}

void OnGetAllDogsCompleted(sender, e) {

var dogs = e.Result;

var ownerServiceClient = new DogOwnerService();

ownerServiceClient.GetAllOwnersCompleted += (sdr, result) => {

var owners = result.Result;

foreach(var owner in owners){
owner.Dogs = (from dog in dogs
join person in owners
on dog.DogId equals person.OwnerID
select dog).ToObservable();
}
};
ownerServiceClient.GetAllOwnersAsync()
}

we are thinking to remove all async calls now in WPF.. Smile | :)

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

Microsoft MVP (Silverlight), WPF/Silverlight Insiders

GeneralRe: Displaying Data fetched asyncronously Pin
Jeremy Likness26-Jul-09 3:17
professionalJeremy Likness26-Jul-09 3:17 
GeneralRe: Displaying Data fetched asyncronously Pin
Adriaan Davel27-Jul-09 1:42
Adriaan Davel27-Jul-09 1:42 

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.