Click here to Skip to main content
11,487,406 members (72,490 online)

Silverlight / WPF

 
AnswerRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
db7uk26-Jan-13 14:11
memberdb7uk26-Jan-13 14:11 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time [modified] Pin
Steve Holdorf27-Jan-13 4:19
memberSteve Holdorf27-Jan-13 4:19 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
db7uk27-Jan-13 13:44
memberdb7uk27-Jan-13 13:44 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time [modified] Pin
Steve Holdorf27-Jan-13 14:16
memberSteve Holdorf27-Jan-13 14:16 
Please remember that the actual code is at my office at work and I am at home. I have network security rules that don't allow me to bring code home. However, this is a Silverlight page control the Do Work Complete bw_RunWorkerCompleted is the Async event that is called once the bw_DoWork is finishes. Now, 'TimeLine timeline' is a codeplex control which is a sub-control on the main page control that displays a Silverlight timeline. How it works is that a wcf call is made which fills the timeline's List<Event> events collection that is a property of the TimeLine control. Now, when timeline.UpdateEvents is called the timeline control iterates the list and re-draws the timeline with each of the collection's event objects. The Backgroundworker class provides an Async run event and on event complete combination. I have to put the 'while (!autoEvent.WaitOne())', sorry I forgot the while in the while loop, to wait until the main thread signals so that the Dispatch.BeginInvoke(timeline.UpdateEvents) is blocked unitl the collection is updated by the wcf call or I get an exception. I know that my discription is a bit sketchy but this is all I can go on as far a specifics until in the morning. If you can help that would be great!

Thanks,

Steve Holdorf

-- modified 27-Jan-13 20:31pm.
QuestionSilverlight OOB access in Online Pin
Sugumaran s24-Jan-13 0:09
memberSugumaran s24-Jan-13 0:09 
AnswerRe: Silverlight OOB access in Online Pin
Richard MacCutchan24-Jan-13 2:50
mvpRichard MacCutchan24-Jan-13 2:50 
GeneralRe: Silverlight OOB access in Online Pin
Sugumaran s24-Jan-13 18:31
memberSugumaran s24-Jan-13 18:31 
GeneralRe: Silverlight OOB access in Online Pin
Richard MacCutchan24-Jan-13 23:41
mvpRichard MacCutchan24-Jan-13 23:41 
GeneralRe: Silverlight OOB access in Online Pin
Sugumaran s25-Jan-13 1:36
memberSugumaran s25-Jan-13 1:36 
GeneralRe: Silverlight OOB access in Online Pin
Richard MacCutchan25-Jan-13 2:36
mvpRichard MacCutchan25-Jan-13 2:36 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 26 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid