Autor Beitrag
ebber
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 239
Erhaltene Danke: 1

Win XP, Win 7
C# (VS 2010), Delphi (2007), Expression 4
BeitragVerfasst: Do 24.04.08 20:20 
Hallo

wie kann ich in meinem WPF Programm Invoke machen? Ich habe gesehen, dass die Invoke Funktionen in System.Windows.Forms sind. Die gibts ja aber hier nicht? Wie mache ich das hier?

MfG
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 24.04.08 21:55 
Über den Dispatcher des entsprechenden GUI-Elementes, meistens wohl Dein Window:
ausblenden C#-Quelltext
1:
Dispatcher.Invoke(DispatcherPriorioty.Normal, foo);					

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
ebber Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 239
Erhaltene Danke: 1

Win XP, Win 7
C# (VS 2010), Delphi (2007), Expression 4
BeitragVerfasst: Do 24.04.08 22:37 
Danke, es funktioniert, fast.

So funktionierts:

ausblenden C#-Quelltext
1:
Dispatcher.Invoke(DispatcherPriority.Normal, foo);					


MfG