![[C# - Prism] 프리즘 예제 15 - FilteringEvent](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fo5e6P%2FbtsshpdYygl%2FXrjD6i8Tw3hAKsJ21sWKQ1%2Fimg.png)
C#/Prism2023. 8. 27. 14:29[C# - Prism] 프리즘 예제 15 - FilteringEvent
안녕하세요, 반나무입니다. 이번 예제는 지난 예제에 이어서 EventAggregator를 사용합니다. Event를 Filtering해 원하는 Event만 사용 할 수 있게 하는 방법을 안내합니다. 다른 부분 코드는 동일하며 Event를 Subcribe(구독)하는 부분에서 코드가 다릅니다. ModuleB public class MessageListViewModel : BindableBase { IEventAggregator _ea; private ObservableCollection _messages; public ObservableCollection Messages { get { return _messages; } set { SetProperty(ref _messages, value); } } publi..