Click here to Skip to main content
15,913,685 members
Home / Discussions / WPF
   

WPF

 
QuestionRe: More complex databinding Pin
Lutosław1-Jun-10 5:00
Lutosław1-Jun-10 5:00 
AnswerRe: More complex databinding Pin
AspDotNetDev2-Jun-10 12:56
protectorAspDotNetDev2-Jun-10 12:56 
QuestionAs www.k12.com in this site i need About us menu pop as it is in using silverlight control Pin
Ch.Gayatri Subudhi30-May-10 20:12
Ch.Gayatri Subudhi30-May-10 20:12 
AnswerRe: As www.k12.com in this site i need About us menu pop as it is in using silverlight control Pin
Abhinav S30-May-10 20:23
Abhinav S30-May-10 20:23 
GeneralRe: As www.k12.com in this site i need About us menu pop as it is in using silverlight control Pin
Ch.Gayatri Subudhi30-May-10 20:34
Ch.Gayatri Subudhi30-May-10 20:34 
QuestionValidation in silverlight datagrid? Pin
mittalpa30-May-10 6:11
mittalpa30-May-10 6:11 
QuestionWPF and Threading Pin
cdpace30-May-10 2:44
cdpace30-May-10 2:44 
AnswerRe: WPF and Threading Pin
Abhishek Sur1-Jun-10 0:48
professionalAbhishek Sur1-Jun-10 0:48 
This is the most general issue. You can access UI objects only from UI thread.

In WPF the UI thread is pointed using Dispatcher object. So you can replace the code

lstbOnlineClients.Items.Add(x);


with
this.Dispatcher.Invoke(DispatcherPriority.Normal, new System.Windows.Forms.MethodInvoker(delegate()<br />
{<br />
     lstbOnlineClients.Items.Add(x);<br />
}));<br />

Dispatcher will invoke the code in the UI thread.
I hope this will help you.

Rose | [Rose]
Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
Visit My Website-->


www.abhisheksur.com

GeneralRe: WPF and Threading Pin
AspDotNetDev2-Jun-10 9:14
protectorAspDotNetDev2-Jun-10 9:14 
QuestionAdd a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Lutosław30-May-10 0:57
Lutosław30-May-10 0:57 
AnswerRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Kevin Marois1-Jun-10 8:24
professionalKevin Marois1-Jun-10 8:24 
GeneralRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Lutosław1-Jun-10 8:50
Lutosław1-Jun-10 8:50 
GeneralRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Kevin Marois1-Jun-10 10:26
professionalKevin Marois1-Jun-10 10:26 
AnswerRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Pete O'Hanlon1-Jun-10 21:20
mvePete O'Hanlon1-Jun-10 21:20 
QuestionStoryboard animation should be infinite Pin
Tripathi Swati29-May-10 1:13
Tripathi Swati29-May-10 1:13 
AnswerRe: Storyboard animation should be infinite Pin
Not Active29-May-10 3:22
mentorNot Active29-May-10 3:22 
GeneralRe: Storyboard animation should be infinite Pin
Tripathi Swati31-May-10 0:13
Tripathi Swati31-May-10 0:13 
QuestionData Binding - I Don't Get It Pin
#realJSOP27-May-10 12:22
professional#realJSOP27-May-10 12:22 
AnswerRe: Data Binding - I Don't Get It Pin
Pete O'Hanlon27-May-10 12:34
mvePete O'Hanlon27-May-10 12:34 
GeneralRe: Data Binding - I Don't Get It Pin
#realJSOP27-May-10 23:23
professional#realJSOP27-May-10 23:23 
GeneralRe: Data Binding - I Don't Get It Pin
Pete O'Hanlon28-May-10 4:42
mvePete O'Hanlon28-May-10 4:42 
AnswerRe: Data Binding - I Don't Get It Pin
AspDotNetDev27-May-10 13:48
protectorAspDotNetDev27-May-10 13:48 
GeneralRe: Data Binding - I Don't Get It Pin
AspDotNetDev27-May-10 14:10
protectorAspDotNetDev27-May-10 14:10 
GeneralRe: Data Binding - I Don't Get It Pin
Not Active27-May-10 14:41
mentorNot Active27-May-10 14:41 
GeneralRe: Data Binding - I Don't Get It Pin
AspDotNetDev27-May-10 14:52
protectorAspDotNetDev27-May-10 14:52 

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.