Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Unsubscribe from events in a static class

$
0
0

How do i unsubscribe from an event in a static class?

public static class Helper
   {

      static Helper()
      {
         IEventAggregator eventAggregator = Something.Resolve<IEventAggregator>();
         eventAggregator.GetEvent<TestChangedEvent>().Subscribe(TestChanged);

Anonymous


Viewing all articles
Browse latest Browse all 18858

Trending Articles