Click here to Skip to main content
14,982,842 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Differences Pin
Richard MacCutchan30-Nov-20 6:45
mveRichard MacCutchan30-Nov-20 6:45 
AnswerMessage Closed Pin
9-Jan-21 22:49
MemberMEGA_REALTY9-Jan-21 22:49 
QuestionDependencyProperty Binding Problem Pin
Kevin Marois2-Oct-20 6:02
professionalKevin Marois2-Oct-20 6:02 
QuestionReuseable Triggers? Pin
Kevin Marois18-Sep-20 9:07
professionalKevin Marois18-Sep-20 9:07 
Questionload usercontrol in background worker Pin
Rusdy Perkasa8-Sep-20 21:31
MemberRusdy Perkasa8-Sep-20 21:31 
AnswerRe: load usercontrol in background worker Pin
Gerry Schmitz9-Sep-20 4:22
mveGerry Schmitz9-Sep-20 4:22 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa9-Sep-20 20:06
MemberRusdy Perkasa9-Sep-20 20:06 
AnswerRe: load usercontrol in background worker Pin
Dave Kreskowiak9-Sep-20 4:46
mveDave Kreskowiak9-Sep-20 4:46 
The code you posted doesn't have anything to do with the problem as far as we can tell.

If you're trying to create and manipulate controls in the background worker, you can't. Controls have to be created on the UI thread, the thread your app started on.

If you're adding data to controls, you cannot do it from a background worker. You cannot touch or modify controls from anything other than the UI thread.

You can load the data you need into data structures in the background worker, but adding that data to controls must be done on the UI thread.

GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa9-Sep-20 20:14
MemberRusdy Perkasa9-Sep-20 20:14 
GeneralRe: load usercontrol in background worker Pin
Dave Kreskowiak10-Sep-20 3:50
mveDave Kreskowiak10-Sep-20 3:50 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa10-Sep-20 15:56
MemberRusdy Perkasa10-Sep-20 15:56 
GeneralRe: load usercontrol in background worker Pin
Dave Kreskowiak10-Sep-20 16:29
mveDave Kreskowiak10-Sep-20 16:29 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa10-Sep-20 17:15
MemberRusdy Perkasa10-Sep-20 17:15 
GeneralRe: load usercontrol in background worker Pin
Dave Kreskowiak10-Sep-20 18:02
mveDave Kreskowiak10-Sep-20 18:02 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa10-Sep-20 18:41
MemberRusdy Perkasa10-Sep-20 18:41 
GeneralRe: load usercontrol in background worker Pin
Dave Kreskowiak11-Sep-20 2:32
mveDave Kreskowiak11-Sep-20 2:32 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa11-Sep-20 17:13
MemberRusdy Perkasa11-Sep-20 17:13 
GeneralRe: load usercontrol in background worker Pin
Dave Kreskowiak11-Sep-20 18:36
mveDave Kreskowiak11-Sep-20 18:36 
GeneralRe: load usercontrol in background worker Pin
Gerry Schmitz11-Sep-20 9:29
mveGerry Schmitz11-Sep-20 9:29 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa11-Sep-20 17:20
MemberRusdy Perkasa11-Sep-20 17:20 
GeneralRe: load usercontrol in background worker Pin
Mycroft Holmes11-Sep-20 12:20
professionalMycroft Holmes11-Sep-20 12:20 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa11-Sep-20 17:27
MemberRusdy Perkasa11-Sep-20 17:27 
GeneralRe: load usercontrol in background worker Pin
Gerry Schmitz11-Sep-20 18:14
mveGerry Schmitz11-Sep-20 18:14 
GeneralRe: load usercontrol in background worker Pin
Rusdy Perkasa11-Sep-20 18:28
MemberRusdy Perkasa11-Sep-20 18:28 
GeneralRe: load usercontrol in background worker Pin
Gerry Schmitz12-Sep-20 4:47
mveGerry Schmitz12-Sep-20 4:47 

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.