Click here to Skip to main content
15,888,521 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Updating only visible rows in WPF ListView Pin
Kunal Chowdhury «IN»13-May-09 2:06
professionalKunal Chowdhury «IN»13-May-09 2:06 
GeneralRe: Updating only visible rows in WPF ListView Pin
Pankaj Chamria13-May-09 22:22
Pankaj Chamria13-May-09 22:22 
GeneralRe: Updating only visible rows in WPF ListView Pin
Kunal Chowdhury «IN»14-May-09 2:48
professionalKunal Chowdhury «IN»14-May-09 2:48 
GeneralRe: Updating only visible rows in WPF ListView Pin
Pete O'Hanlon14-May-09 4:57
mvePete O'Hanlon14-May-09 4:57 
GeneralRe: Updating only visible rows in WPF ListView Pin
Kunal Chowdhury «IN»14-May-09 21:02
professionalKunal Chowdhury «IN»14-May-09 21:02 
QuestionWPF, Delegates, The calling thread cannot access this object because a different thread owns it Pin
frosty_4th16-Feb-09 16:00
frosty_4th16-Feb-09 16:00 
AnswerRe: WPF, Delegates, The calling thread cannot access this object because a different thread owns it Pin
ABitSmart16-Feb-09 16:36
ABitSmart16-Feb-09 16:36 
GeneralRe: WPF, Delegates, The calling thread cannot access this object because a different thread owns it Pin
Pete O'Hanlon16-Feb-09 22:25
mvePete O'Hanlon16-Feb-09 22:25 
Sacha Barber proposed a fantastic extension method that you might want to look into. It's called InvokeIfRequired, and looks a bit like this:
public static void InvokeIfRequired(this DispatcherControl control, Action operation)
{
  if (control.Dispatcher.CheckAccess())
  {
    operation();
  }
  else
  {
    control.Dispatcher.BeginInvoke(DispatcherPriority.Normal, operation);
  }
}
Then, it's simple to do:
Dispatcher.CurrentDispatcher.InvokeIfRequired(()=>{ theButton.Content="Hello"; });


"WPF has many lovers. It's a veritable porn star!" - Josh Smith

My blog | My articles | MoXAML PowerToys



GeneralRe: WPF, Delegates, The calling thread cannot access this object because a different thread owns it Pin
frosty_4th16-Feb-09 23:41
frosty_4th16-Feb-09 23:41 
GeneralRe: WPF, Delegates, The calling thread cannot access this object because a different thread owns it Pin
Pete O'Hanlon16-Feb-09 23:49
mvePete O'Hanlon16-Feb-09 23:49 
GeneralRe: WPF, Delegates, The calling thread cannot access this object because a different thread owns it Pin
gvijaianandmca30-Sep-09 1:10
gvijaianandmca30-Sep-09 1:10 
GeneralRe: WPF, Delegates, The calling thread cannot access this object because a different thread owns it Pin
Pete O'Hanlon30-Sep-09 2:11
mvePete O'Hanlon30-Sep-09 2:11 
QuestionAnother Silverlight upgrade headache - Hashtable [modified] Pin
devvvy16-Feb-09 14:34
devvvy16-Feb-09 14:34 
AnswerRe: Another Silverlight upgrade headache - Hashtable Pin
Mark Salsbery17-Feb-09 5:18
Mark Salsbery17-Feb-09 5:18 
GeneralRe: Another Silverlight upgrade headache - Hashtable Pin
devvvy17-Feb-09 15:25
devvvy17-Feb-09 15:25 
GeneralRe: Another Silverlight upgrade headache - Hashtable Pin
Mark Salsbery17-Feb-09 15:34
Mark Salsbery17-Feb-09 15:34 
GeneralRe: Another Silverlight upgrade headache - Hashtable Pin
Mark Salsbery17-Feb-09 15:39
Mark Salsbery17-Feb-09 15:39 
GeneralRe: Another Silverlight upgrade headache - Hashtable Pin
devvvy17-Feb-09 22:53
devvvy17-Feb-09 22:53 
GeneralRe: Another Silverlight upgrade headache - Hashtable Pin
Mark Salsbery17-Feb-09 22:55
Mark Salsbery17-Feb-09 22:55 
GeneralRe: Another Silverlight upgrade headache - Hashtable Pin
pieterbosteels17-Feb-09 22:47
pieterbosteels17-Feb-09 22:47 
GeneralRe: Another Silverlight upgrade headache - Hashtable Pin
devvvy17-Feb-09 22:52
devvvy17-Feb-09 22:52 
AnswerRe: Another Silverlight upgrade headache - Hashtable Pin
Braulio Dez12-Mar-09 23:14
Braulio Dez12-Mar-09 23:14 
QuestionProblem with DataGrid (selected rows) Pin
Czechtim216-Feb-09 12:35
Czechtim216-Feb-09 12:35 
Question[Message Deleted] Pin
Prajeesh15-Feb-09 22:26
Prajeesh15-Feb-09 22:26 
AnswerRe: WPF Pin
Pete O'Hanlon15-Feb-09 22:32
mvePete O'Hanlon15-Feb-09 22:32 

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.