Click here to Skip to main content
15,887,746 members
Home / Discussions / WPF
   

WPF

 
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 
GeneralRe: Displaying Data fetched asyncronously Pin
Jeremy Likness26-Jul-09 3:17
professionalJeremy Likness26-Jul-09 3:17 
I think the point here though is semantics, not complexity or limitations.

The fact is, asynchronous doesn't mean you can't have the ui wait.

Doing:

enter
callandwait
leave

vs.

enter
beginasync
showmodaldialogforwaiting
leave

receiveasync
hidemodaldialogforwaiting
leave

Is a similar pattern. In other words, there is nothing to prevent you from locking the UI while you wait for the call. We have several pages that are aggregate controls for filters, locations, and other parameters that act on a grid and all must be pulled in before the user can react. Rather than create the awkward situation of freezing the ui while waiting, in which case the user has to be wondering, "What on earth is going?" We can simply set a global state and then lock down the UI and show a user-friendly animation, loading icon, hourglass, or whatever. As each collection of data comes in, the state is updated and when all controls are fully loaded then we remove the modal "hey, we're initializing" and go on with business as usual.

Would that be something that would work in your case? IMHO even if you need it to logically function as if synchronous, asynchronous gives you more flexibility to engage the user appropriately and notify them you are waiting for something as you pull in the call.

Jeremy Likness
Latest Article: Hierarchal Data Templates in Silverlight
Blog:
http://csharperimage.jeremylikness.com/

GeneralRe: Displaying Data fetched asyncronously Pin
Adriaan Davel27-Jul-09 1:42
Adriaan Davel27-Jul-09 1:42 
AnswerRe: Displaying Data fetched asyncronously Pin
Daniel Vaughan9-Jan-10 7:33
Daniel Vaughan9-Jan-10 7:33 
QuestionWPF TreeListView Control Not Working!!!!! Pin
ub3rst4r11-Jul-09 15:01
ub3rst4r11-Jul-09 15:01 
AnswerRe: WPF TreeListView Control Not Working!!!!! Pin
Christian Graus13-Jul-09 7:33
protectorChristian Graus13-Jul-09 7:33 
GeneralRe: WPF TreeListView Control Not Working!!!!! Pin
ub3rst4r13-Jul-09 8:24
ub3rst4r13-Jul-09 8:24 
GeneralRe: WPF TreeListView Control Not Working!!!!! Pin
Christian Graus13-Jul-09 8:42
protectorChristian Graus13-Jul-09 8:42 
QuestionDid you ever wonder, What the origin of XAML is? [modified] Pin
ProtoBytes10-Jul-09 10:29
ProtoBytes10-Jul-09 10:29 
AnswerRe: Did you ever wonder, What the origin of XAML is? Pin
Christian Graus11-Jul-09 4:39
protectorChristian Graus11-Jul-09 4:39 
GeneralRe: Did you ever wonder, What the origin of XAML is? Pin
ProtoBytes12-Jul-09 1:53
ProtoBytes12-Jul-09 1:53 
GeneralRe: Did you ever wonder, What the origin of XAML is? Pin
Christian Graus12-Jul-09 4:37
protectorChristian Graus12-Jul-09 4:37 
GeneralRe: Did you ever wonder, What the origin of XAML is? Pin
ProtoBytes12-Jul-09 6:00
ProtoBytes12-Jul-09 6:00 
QuestionRe: Here is a question, Mind doing me a favor? Pin
ProtoBytes12-Jul-09 2:09
ProtoBytes12-Jul-09 2:09 
GeneralRe: Did you ever wonder, What the origin of XAML is? Pin
Super Lloyd15-Jul-09 0:38
Super Lloyd15-Jul-09 0:38 
AnswerRe: Did you ever wonder, What the origin of XAML is? Pin
#realJSOP11-Jul-09 9:13
mve#realJSOP11-Jul-09 9:13 
GeneralRe: Did you ever wonder, What the origin of XAML is? Pin
ProtoBytes12-Jul-09 2:02
ProtoBytes12-Jul-09 2:02 
QuestionSilverlight 3 Released! Pin
Mark Salsbery10-Jul-09 8:56
Mark Salsbery10-Jul-09 8:56 
AnswerRe: Silverlight 3 Released! Pin
Ray Cassick10-Jul-09 11:26
Ray Cassick10-Jul-09 11:26 

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.