C#/WPF - RoutedEvent in WPF class that isn't a UIElement

Posted by Andreas on Stack Overflow See other posts from Stack Overflow or by Andreas
Published on 2010-03-29T09:43:13Z Indexed on 2010/03/29 12:03 UTC
Read the original article Hit count: 1659

Filed under:
|
|

I have a class that needs to notify that something significant has occured. The class is in a WPF-project, even though this specific class, is lookless (and doesn't inherit from UIElement, neither directly or indirectly).

Normally, I just register a RoutedEvent to get this functionality but as this class neither has AddHandler nor RemoveHandler, I can't get it to work. Anyone knows of another way of get the RoutedEvent behaviour?

© Stack Overflow or respective owner

Related posts about routedevent

Related posts about uielement