Click here to Skip to main content
12,624,844 members (35,639 online)

Silverlight / WPF

 
QuestionWPF.MDI Pin
columbos1492725-Jan-13 9:37
membercolumbos1492725-Jan-13 9:37 
AnswerRe: WPF.MDI Pin
Abhishek Pant25-Jan-13 10:29
memberAbhishek Pant25-Jan-13 10:29 
GeneralRe: WPF.MDI Pin
columbos1492725-Jan-13 23:11
membercolumbos1492725-Jan-13 23:11 
GeneralRe: WPF.MDI Pin
Abhishek Pant25-Jan-13 23:33
memberAbhishek Pant25-Jan-13 23:33 
AnswerRe: WPF.MDI Pin
tram730-Nov-13 6:54
membertram730-Nov-13 6:54 
QuestionSilverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
Steve Holdorf24-Jan-13 13:13
memberSteve Holdorf24-Jan-13 13:13 
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 Pin
Steve Holdorf27-Jan-13 4:19
memberSteve Holdorf27-Jan-13 4:19 
It is hard for me to cut and paste code because I develop on one network and access the internet on another. But my code looks something like this:

Backgroundworker bw = new Backgroundworker();

public void Constructor ()
{
bw.DoWork += new DoWorkEventHandler(bw_DoWork);

bw.RunWorkerCompleted +=
new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted);

}

private void Update()
{
bw.bw_DoWorkAsync();

while (!autoEvent.WaitOne())
{
Dispatcher.BeginInvoke(timeline.UpdateEvents)
}

}

private void bw_DoWork(Object sender, DoWorkEventArgs e)
{
Dispatcher.beginInvoke(GetFreshData);
// This event is where I refresh the collection data
}

private void bw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
Dispatcher.BeginInvoke(timeline.UpdateEvents)

//updates the timeline control where my refreshed collecton exists

}

Now, I put a break point in the bw_DoWork and bw_RunWorkerComplete which gets hit every time; however, the timeline control refresh never occurs except for the first time.

Thanks,


Steve Holdorf

-- modified 27-Jan-13 19:17pm.
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 Pin
Steve Holdorf27-Jan-13 14:16
memberSteve Holdorf27-Jan-13 14:16 
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 
QuestionHow to set the border template a red wavy line , when the control have validation error? Pin
Salam633123-Jan-13 18:01
memberSalam633123-Jan-13 18:01 
AnswerRe: How to set the border template a red wavy line , when the control have validation error? Pin
Richard MacCutchan24-Jan-13 0:07
mvpRichard MacCutchan24-Jan-13 0:07 
GeneralRe: How to set the border template a red wavy line , when the control have validation error? Pin
Salam633124-Jan-13 2:36
memberSalam633124-Jan-13 2:36 
GeneralRe: How to set the border template a red wavy line , when the control have validation error? Pin
Richard MacCutchan24-Jan-13 2:43
mvpRichard MacCutchan24-Jan-13 2:43 
QuestionText box default text Pin
columbos1492722-Jan-13 3:06
membercolumbos1492722-Jan-13 3:06 
AnswerRe: Text box default text Pin
Abhinav S22-Jan-13 4:06
mvpAbhinav S22-Jan-13 4:06 
QuestionConverting WPF windows application to Web Application. Pin
Hema Bairavan21-Jan-13 20:20
memberHema Bairavan21-Jan-13 20:20 
AnswerRe: Converting WPF windows application to Web Application. Pin
HariPrasad katakam21-Jan-13 23:31
memberHariPrasad katakam21-Jan-13 23:31 
GeneralRe: Converting WPF windows application to Web Application. Pin
Pete O'Hanlon22-Jan-13 0:22
protectorPete O'Hanlon22-Jan-13 0:22 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.161128.1 | Last Updated 4 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid