Autor Beitrag
georgeboy
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 214



BeitragVerfasst: Do 01.08.24 10:26 
Hallo zusammen, mal wieder, bei den Events in WPF kann man erreichen, dass die Events, wie bei WinForms direkt an den Händler geleitet werden, kein Routed-Event. Weiß aber nicht wie man das einstellen kann, habe schon länger gesucht, weiß jemand Rat ?
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4796
Erhaltene Danke: 1059

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Do 01.08.24 15:06 
Meinst du, daß das Event nicht weiterverarbeitet wird? Dann setze e.Handled = true, s.a. Markieren von Routingereignissen als behandelt und Klassenbehandlung (WPF .NET).
georgeboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 214



BeitragVerfasst: Do 01.08.24 16:18 
Ja soweit bin ich auch gekommen, da gibt es noch "irgendwo" die Eigenschaft: RoutingStrategy die man auf RoutingStrategy.Direct setzen kann, aber wo weiss ich nicht, aber wenn e.Handled = true; ausreicht.

Moderiert von user profile iconTh69: C#-Tags hinzugefügt
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4796
Erhaltene Danke: 1059

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Do 01.08.24 16:31 
RoutingStrategy kann man nur beim Registrieren eines Events setzen: Übersicht über Routingereignisse (WPF .NET) (s. "Implementieren von Routingereignissen")
georgeboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 214



BeitragVerfasst: Fr 02.08.24 08:56 
Danke Dir !!!