{"id":43225,"date":"2024-11-26T12:26:17","date_gmt":"2024-11-26T12:26:17","guid":{"rendered":"https:\/\/atmokpo.com\/w\/?p=43225"},"modified":"2024-11-26T12:26:17","modified_gmt":"2024-11-26T12:26:17","slug":"prism-014-prism%ec%9d%98-%ec%bb%a4%eb%a7%a8%eb%93%9c-%eb%b0%8f-%ec%9d%b4%eb%b2%a4%ed%8a%b8-%ea%b0%80%ec%a0%b8%ec%98%a4%ea%b8%b0-delegatecommand-%eb%b0%8f-eventaggregator-%ec%82%ac%ec%9a%a9","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/43225\/","title":{"rendered":"[Prism]  014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95"},"content":{"rendered":"<p><body><\/p>\n<article>\n<header>\n<p>\uc791\uc131\uc790: Your Name | \ub0a0\uc9dc: YYYY-MM-DD<\/p>\n<\/header>\n<section>\n<h2>\ubaa9\ucc28<\/h2>\n<ol>\n<li><a href=\"#intro\">1. \uc11c\ub860<\/a><\/li>\n<li><a href=\"#delegateCommand\">2. DelegateCommand<\/a><\/li>\n<li><a href=\"#eventAggregator\">3. EventAggregator<\/a><\/li>\n<li><a href=\"#example\">4. \uc608\uc81c<\/a><\/li>\n<li><a href=\"#conclusion\">5. \uacb0\ub860<\/a><\/li>\n<\/ol>\n<\/section>\n<section id=\"intro\">\n<h2>1. \uc11c\ub860<\/h2>\n<p>\n                WPF(Windows Presentation Foundation) \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\uae30 \uc704\ud55c Prism \ud504\ub808\uc784\uc6cc\ud06c\ub294 \ubaa8\ub4c8\ud654, MVVM \ud328\ud134 \uc9c0\uc6d0 \ubc0f \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uac19\uc740 \ub9ce\uc740 \uac15\ub825\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<br \/>\n                \uc774 \uae00\uc5d0\uc11c\ub294 Prism\uc5d0\uc11c \ucee4\ub9e8\ub4dc\uc640 \uc774\ubca4\ud2b8\ub97c \uc5b4\ub5bb\uac8c \ucc98\ub9ac\ud558\ub294\uc9c0, \ud2b9\ud788 <code>DelegateCommand<\/code>\uc640 <code>EventAggregator<\/code>\uc758 \uc0ac\uc6a9 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.<br \/>\n                \ucee4\ub9e8\ub4dc\ub294 \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\uc640 \ubdf0\ubaa8\ub378 \uac04\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \uc815\uc758\ud558\uba70, \uc774\ubca4\ud2b8\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ub2e4\ub978 \ubd80\ubd84 \uac04\uc758 \ud1b5\uc2e0\uc744 \uac00\ub2a5\ud558\uac8c \ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uac1c\ub150\uc740 WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \ub192\uc774\uace0 \ucf54\ub4dc\uc758 \uc7ac\uc0ac\uc6a9\uc131\uc744 \ucd09\uc9c4\ud558\ub294 \ub370 \uc911\uc694\ud55c \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section id=\"delegateCommand\">\n<h2>2. DelegateCommand<\/h2>\n<p>\n<code>DelegateCommand<\/code>\ub294 Prism\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 \ucee4\ub9e8\ub4dc \uad6c\ud604\uccb4\ub85c, \ub9c8\ud06c\uc5c5 \ubc0f \ucf54\ub4dc \ube44\ud558\uc778\ub4dc \uc5c6\uc774 \uba85\ub839\uc744 \uc27d\uac8c \uc815\uc758\ud558\uace0 \uc2e4\ud589\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4.<br \/>\n                \uc774 \ucee4\ub9e8\ub4dc\ub294 \uc77c\ubc18\uc801\uc73c\ub85c \ubc84\ud2bc \ud074\ub9ad \ub4f1 UI \uc694\uc18c\uc758 \ub3d9\uc791\uc5d0 \uc0ac\uc6a9\ub418\uba70, \ud2b9\uc815 \uc870\uac74\uc774 \ucda9\uc871\ub420 \ub54c\ub9cc \ud574\ub2f9 \ucee4\ub9e8\ub4dc\uac00 \uc2e4\ud589\ub420 \uc218 \uc788\ub3c4\ub85d \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 MVVM \ud328\ud134\uc744 \uc720\uc9c0\ud558\uba74\uc11c\ub3c4 \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\uc758 \ub3d9\uc791\uc744 \uc138\ubc00\ud558\uac8c \uc81c\uc5b4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<h3>2.1. DelegateCommand\uc758 \uc0ac\uc6a9 \uc608<\/h3>\n<p>\n<code>DelegateCommand<\/code>\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 \uba3c\uc800 Prism \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4.<br \/>\n                NuGet \ud328\ud0a4\uc9c0 \uad00\ub9ac\uc790\ub97c \ud1b5\ud574 <code>Prism.Core<\/code> \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n                \uc124\uce58 \ud6c4, <code>DelegateCommand<\/code>\ub97c \uc0ac\uc6a9\ud574 \ucee4\ub9e8\ub4dc\ub97c \uc815\uc758\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<h4>\uc608\uc81c \ucf54\ub4dc<\/h4>\n<pre><code>\nusing Prism.Commands;\nusing Prism.Mvvm;\n\npublic class MyViewModel : BindableBase\n{\n    private string _message;\n    public string Message\n    {\n        get =&gt; _message;\n        set =&gt; SetProperty(ref _message, value);\n    }\n\n    public DelegateCommand ExecuteCommand { get; set; }\n\n    public MyViewModel()\n    {\n        ExecuteCommand = new DelegateCommand(OnExecute, CanExecute)\n            .ObservesProperty(() =&gt; Message);\n    }\n\n    private void OnExecute()\n    {\n        Message = \"\ucee4\ub9e8\ub4dc\uac00 \uc2e4\ud589\ub418\uc5c8\uc2b5\ub2c8\ub2e4!\";\n    }\n\n    private bool CanExecute()\n    {\n        return !string.IsNullOrEmpty(Message);\n    }\n}\n            <\/code><\/pre>\n<p>\n                \uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c, <code>MyViewModel<\/code> \ud074\ub798\uc2a4\ub294 <code>DelegateCommand<\/code>\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucee4\ub9e8\ub4dc\ub97c \uc815\uc758\ud569\ub2c8\ub2e4.<br \/>\n                <code>OnExecute<\/code> \uba54\uc11c\ub4dc\ub294 \uc2e4\uc81c\ub85c \ucee4\ub9e8\ub4dc\uac00 \ud638\ucd9c\ub420 \ub54c \uc2e4\ud589\ub418\uba70, <code>CanExecute<\/code> \uba54\uc11c\ub4dc\ub294 \ucee4\ub9e8\ub4dc\uac00 \uc2e4\ud589 \uac00\ub2a5\ud55c\uc9c0 \uc5ec\ubd80\ub97c \uacb0\uc815\ud569\ub2c8\ub2e4.<br \/>\n                \uc774 \uad6c\ud604\uc740 \ud574\ub2f9 \ubdf0\ubaa8\ub378\uc758 <code>Message<\/code> \uc18d\uc131\uc774 \ube44\uc5b4\uc788\uc9c0 \uc54a\uc744 \ub54c\ub9cc \ucee4\ub9e8\ub4dc\ub97c \ud65c\uc131\ud654\ud569\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section id=\"eventAggregator\">\n<h2>3. EventAggregator<\/h2>\n<p>\n<code>EventAggregator<\/code>\ub294 Prism\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 \uc774\ubca4\ud2b8 \uae30\ubc18 \ucee4\ubba4\ub2c8\ucf00\uc774\uc158 \ud328\ud134\uc744 \uad6c\ud604\ud560 \uc218 \uc788\ub294 \ud074\ub798\uc2a4\ub85c, \ubaa8\ub4c8 \uac04\uc758 \ub290\uc2a8\ud55c \uacb0\ud569\uc744 \uc720\uc9c0\ud558\uba74\uc11c \uc774\ubca4\ud2b8\ub97c \uc804\ub2ec\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n                \uc774\ub294 \uc5ec\ub7ec \ubaa8\ub4c8\uc774 \uc11c\ub85c \uc9c1\uc811\uc801\uc73c\ub85c \uc758\uc874\ud558\uc9c0 \uc54a\uace0\ub3c4 \uc11c\ub85c \ud1b5\uc2e0\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\uba70, \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc720\uc5f0\uc131\uacfc \ud655\uc7a5\uc131\uc744 \ub192\uc785\ub2c8\ub2e4.\n            <\/p>\n<h3>3.1. EventAggregator\uc758 \uc0ac\uc6a9 \uc608<\/h3>\n<p>\n                EventAggregator\ub97c \uc0ac\uc6a9\ud558\uc5ec \uba54\uc2dc\uc9c0\ub97c \uac8c\uc2dc\ud558\uace0 \uad6c\ub3c5\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<h4>\uc608\uc81c \ucf54\ub4dc<\/h4>\n<pre><code>\nusing Prism.Events;\n\npublic class MyEvent : PubSubEvent<string>\n{\n}\n\npublic class Publisher\n{\n    private readonly IEventAggregator _eventAggregator;\n\n    public Publisher(IEventAggregator eventAggregator)\n    {\n        _eventAggregator = eventAggregator;\n    }\n\n    public void PublishMessage(string message)\n    {\n        _eventAggregator.GetEvent<myevent>().Publish(message);\n    }\n}\n\npublic class Subscriber\n{\n    private readonly IEventAggregator _eventAggregator;\n\n    public Subscriber(IEventAggregator eventAggregator)\n    {\n        _eventAggregator = eventAggregator;\n        _eventAggregator.GetEvent<myevent>().Subscribe(OnMessageReceived);\n    }\n\n    private void OnMessageReceived(string message)\n    {\n        Console.WriteLine($\"\uba54\uc2dc\uc9c0\ub97c \ubc1b\uc558\uc2b5\ub2c8\ub2e4: {message}\");\n    }\n}\n            <\/myevent><\/myevent><\/string><\/code><\/pre>\n<p>\n                \uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c, <code>MyEvent<\/code>\ub77c\ub294 \ucee4\uc2a4\ud140 \uc774\ubca4\ud2b8\ub97c \uc815\uc758\ud558\uc600\uc2b5\ub2c8\ub2e4. <code>Publisher<\/code> \ud074\ub798\uc2a4\ub294 \uc774\ubca4\ud2b8\ub97c \uac8c\uc2dc\ud558\uba70, <code>Subscriber<\/code> \ud074\ub798\uc2a4\ub294 \ud574\ub2f9 \uc774\ubca4\ud2b8\ub97c \uad6c\ub3c5\ud558\uc5ec \uba54\uc2dc\uc9c0\ub97c \uc218\uc2e0\ud569\ub2c8\ub2e4.<br \/>\n                \uc774\ub97c \ud1b5\ud574 \ubaa8\ub4c8 \uac04\uc758 \uc758\uc874\uc131\uc744 \ucd5c\uc18c\ud654\ud558\uba74\uc11c\ub3c4 \ud6a8\uacfc\uc801\uc73c\ub85c \uba54\uc2dc\uc9c0\ub97c \uc804\ub2ec\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section id=\"example\">\n<h2>4. \uc608\uc81c<\/h2>\n<p>\n                \uc774\uc81c \uc2e4\uc9c8\uc801\uc778 \uc608\uc81c\ub97c \ud1b5\ud574 DelegateCommand\uc640 EventAggregator\ub97c \ud568\uaed8 \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\ub4dc\ub9ac\uaca0\uc2b5\ub2c8\ub2e4.<br \/>\n                \uc774 \uc608\uc81c\uc5d0\uc11c\ub294 \uc0ac\uc6a9\uc790\uac00 \ubc84\ud2bc\uc744 \ud074\ub9ad\ud558\uc5ec \uba54\uc2dc\uc9c0\ub97c \uc785\ub825\ud560 \uc218 \uc788\uace0, \ub2e4\ub978 \ubaa8\ub4c8\uc5d0\uc11c \uadf8 \uba54\uc2dc\uc9c0\ub97c \ubc1b\uc544 \ucd9c\ub825\ud558\ub294 \uac04\ub2e8\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<h4>4.1. ViewModel \ud074\ub798\uc2a4<\/h4>\n<pre><code>\npublic class MainViewModel : BindableBase\n{\n    private readonly IEventAggregator _eventAggregator;\n\n    public string InputMessage { get; set; }\n\n    public DelegateCommand SendCommand { get; set; }\n\n    public MainViewModel(IEventAggregator eventAggregator)\n    {\n        _eventAggregator = eventAggregator;\n        SendCommand = new DelegateCommand(OnSendMessage);\n    }\n\n    private void OnSendMessage()\n    {\n        _eventAggregator.GetEvent<myevent>().Publish(InputMessage);\n        InputMessage = string.Empty;  \/\/ \uba54\uc2dc\uc9c0 \uc804\uc1a1 \ud6c4 \uc785\ub825 \ud544\ub4dc\ub97c \ucd08\uae30\ud654\n    }\n}\n            <\/myevent><\/code><\/pre>\n<h4>4.2. Publisher \ubc0f Subscriber \ud074\ub798\uc2a4<\/h4>\n<pre><code>\npublic class PublisherModule\n{\n    private readonly IEventAggregator _eventAggregator;\n\n    public PublisherModule(IEventAggregator eventAggregator)\n    {\n        _eventAggregator = eventAggregator;\n    }\n\n    public void Start()\n    {\n        var subscriber = new Subscriber(_eventAggregator);\n    }\n}\n\npublic class SubscriberModule\n{\n    private readonly IEventAggregator _eventAggregator;\n\n    public SubscriberModule(IEventAggregator eventAggregator)\n    {\n        _eventAggregator = eventAggregator;\n        _eventAggregator.GetEvent<myevent>().Subscribe(OnMessageReceived);\n    }\n\n    private void OnMessageReceived(string message)\n    {\n        Console.WriteLine($\"\uc218\uc2e0\ud55c \uba54\uc2dc\uc9c0: {message}\");\n    }\n}\n            <\/myevent><\/code><\/pre>\n<p>\n                \uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c\ub294 <code>MainViewModel<\/code>\uc774 \uc0ac\uc6a9\uc790\uc758 \uc785\ub825 \uba54\uc2dc\uc9c0\ub97c <code>EventAggregator<\/code>\ub97c \ud1b5\ud574 \ubc1c\ud589\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<br \/>\n                \uc0ac\uc6a9\uc790\uac00 \ubc84\ud2bc\uc744 \ud074\ub9ad\ud558\uc5ec \uba54\uc2dc\uc9c0\ub97c \uc804\uc1a1\ud558\uba74, <code>PublisherModule<\/code>\uc640 <code>SubscriberModule<\/code> \uac04\uc758 \ud1b5\uc2e0\uc774 \ubc1c\uc0dd\ud558\uc5ec \uba54\uc2dc\uc9c0\ub97c \ub85c\uadf8\uc5d0 \ucd9c\ub825\ud569\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section id=\"conclusion\">\n<h2>5. \uacb0\ub860<\/h2>\n<p>\n                Prism\uc758 <code>DelegateCommand<\/code>\uc640 <code>EventAggregator<\/code>\ub294 WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c MVVM \ud328\ud134\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \uad6c\ud604\ud558\ub294 \ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4.<br \/>\n                <code>DelegateCommand<\/code>\ub97c \ud1b5\ud574 UI\uc640 \ubdf0\ubaa8\ub378 \uac04\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \uc27d\uace0 \ud6a8\uc728\uc801\uc73c\ub85c \uad00\ub9ac\ud560 \uc218 \uc788\uc73c\uba70, <code>EventAggregator<\/code>\ub97c \uc0ac\uc6a9\ud558\uba74 \ubaa8\ub4c8 \uac04\uc758 \uc720\uc5f0\ud55c \ud1b5\uc2e0\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<br \/>\n                \uc774\ub7ec\ud55c \ub3c4\uad6c\ub4e4\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \ub192\uc774\uace0, \ud655\uc7a5\uc131\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\ub294 \ub370 \ud070 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4. \uc5ec\ub7ec\ubd84\uc758 WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 Prism\uc744 \uc801\uc6a9\ud558\uc5ec \ubcf4\ub2e4 \ub098\uc740 \uc544\ud0a4\ud14d\ucc98\ub97c \uad6c\ucd95\ud574 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc791\uc131\uc790: Your Name | \ub0a0\uc9dc: YYYY-MM-DD \ubaa9\ucc28 1. \uc11c\ub860 2. DelegateCommand 3. EventAggregator 4. \uc608\uc81c 5. \uacb0\ub860 1. \uc11c\ub860 WPF(Windows Presentation Foundation) \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\uae30 \uc704\ud55c Prism \ud504\ub808\uc784\uc6cc\ud06c\ub294 \ubaa8\ub4c8\ud654, MVVM \ud328\ud134 \uc9c0\uc6d0 \ubc0f \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uac19\uc740 \ub9ce\uc740 \uac15\ub825\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Prism\uc5d0\uc11c \ucee4\ub9e8\ub4dc\uc640 \uc774\ubca4\ud2b8\ub97c \uc5b4\ub5bb\uac8c \ucc98\ub9ac\ud558\ub294\uc9c0, \ud2b9\ud788 DelegateCommand\uc640 EventAggregator\uc758 \uc0ac\uc6a9 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ucee4\ub9e8\ub4dc\ub294 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/43225\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[Prism]  014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[39],"tags":[],"class_list":["post-43225","post","type-post","status-publish","format-standard","hentry","category-wpf-"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/43225\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc791\uc131\uc790: Your Name | \ub0a0\uc9dc: YYYY-MM-DD \ubaa9\ucc28 1. \uc11c\ub860 2. DelegateCommand 3. EventAggregator 4. \uc608\uc81c 5. \uacb0\ub860 1. \uc11c\ub860 WPF(Windows Presentation Foundation) \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\uae30 \uc704\ud55c Prism \ud504\ub808\uc784\uc6cc\ud06c\ub294 \ubaa8\ub4c8\ud654, MVVM \ud328\ud134 \uc9c0\uc6d0 \ubc0f \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uac19\uc740 \ub9ce\uc740 \uac15\ub825\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Prism\uc5d0\uc11c \ucee4\ub9e8\ub4dc\uc640 \uc774\ubca4\ud2b8\ub97c \uc5b4\ub5bb\uac8c \ucc98\ub9ac\ud558\ub294\uc9c0, \ud2b9\ud788 DelegateCommand\uc640 EventAggregator\uc758 \uc0ac\uc6a9 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ucee4\ub9e8\ub4dc\ub294 &hellip; \ub354 \ubcf4\uae30 &quot;[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/43225\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-26T12:26:17+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/43225\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/43225\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95\",\"datePublished\":\"2024-11-26T12:26:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/43225\/\"},\"wordCount\":39,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"WPF \uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/43225\/\",\"url\":\"https:\/\/atmokpo.com\/w\/43225\/\",\"name\":\"[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-26T12:26:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/43225\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/43225\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/43225\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/43225\/","og_locale":"ko_KR","og_type":"article","og_title":"[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc791\uc131\uc790: Your Name | \ub0a0\uc9dc: YYYY-MM-DD \ubaa9\ucc28 1. \uc11c\ub860 2. DelegateCommand 3. EventAggregator 4. \uc608\uc81c 5. \uacb0\ub860 1. \uc11c\ub860 WPF(Windows Presentation Foundation) \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\uae30 \uc704\ud55c Prism \ud504\ub808\uc784\uc6cc\ud06c\ub294 \ubaa8\ub4c8\ud654, MVVM \ud328\ud134 \uc9c0\uc6d0 \ubc0f \uc758\uc874\uc131 \uc8fc\uc785\uacfc \uac19\uc740 \ub9ce\uc740 \uac15\ub825\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Prism\uc5d0\uc11c \ucee4\ub9e8\ub4dc\uc640 \uc774\ubca4\ud2b8\ub97c \uc5b4\ub5bb\uac8c \ucc98\ub9ac\ud558\ub294\uc9c0, \ud2b9\ud788 DelegateCommand\uc640 EventAggregator\uc758 \uc0ac\uc6a9 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ucee4\ub9e8\ub4dc\ub294 &hellip; \ub354 \ubcf4\uae30 \"[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95\"","og_url":"https:\/\/atmokpo.com\/w\/43225\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-26T12:26:17+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/43225\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/43225\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95","datePublished":"2024-11-26T12:26:17+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/43225\/"},"wordCount":39,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["WPF \uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/43225\/","url":"https:\/\/atmokpo.com\/w\/43225\/","name":"[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-26T12:26:17+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/43225\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/43225\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/43225\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"[Prism] 014. Prism\uc758 \ucee4\ub9e8\ub4dc \ubc0f \uc774\ubca4\ud2b8 \uac00\uc838\uc624\uae30, DelegateCommand \ubc0f EventAggregator \uc0ac\uc6a9\ubc95"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/43225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=43225"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/43225\/revisions"}],"predecessor-version":[{"id":43226,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/43225\/revisions\/43226"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=43225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=43225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=43225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}