{"id":31273,"date":"2024-10-28T11:18:54","date_gmt":"2024-10-28T11:18:54","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=31273"},"modified":"2024-11-26T06:45:41","modified_gmt":"2024-11-26T06:45:41","slug":"wpf-%ea%b0%95%ec%a2%8c-mvvm%ec%9d%84-%ec%82%ac%ec%9a%a9%ed%95%9c-wpf-%ec%95%a0%ed%94%8c%eb%a6%ac%ec%bc%80%ec%9d%b4%ec%85%98-%ec%84%a4%ea%b3%84","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/31273\/","title":{"rendered":"WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4"},"content":{"rendered":"<p>Windows Presentation Foundation(WPF)\uc740 \ub370\uc2a4\ud06c\ud0d1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\uae30 \uc704\ud574 Microsoft\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. WPF\ub294 \ub6f0\uc5b4\ub09c \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\ub97c \ub9cc\ub4e4 \uc218 \uc788\ub294 \uac15\ub825\ud55c \uae30\ub2a5\ub4e4\uc744 \uc81c\uacf5\ud558\uba70, \uc5ec\uae30\uc11c MVVM(Model-View-ViewModel) \ud328\ud134\uc744 \ud65c\uc6a9\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \uc124\uacc4\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. MVVM \ud328\ud134 \uac1c\uc694<\/h2>\n<p>MVVM\uc740 Model-View-ViewModel\uc758 \uc57d\uc790\ub85c, \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\uc640 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ubd84\ub9ac\ud558\uae30 \uc704\ud574 \uc124\uacc4\ub41c \ub514\uc790\uc778 \ud328\ud134\uc785\ub2c8\ub2e4. \uc774 \ud328\ud134\uc740 \ub2e4\uc74c \uc138 \uac00\uc9c0 \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>Model:<\/strong> \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ub370\uc774\ud130 \ubc0f \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ub2f4\ub2f9\ud569\ub2c8\ub2e4. \ubaa8\ub378\uc740 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9, \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ube44\uc988\ub2c8\uc2a4 \uaddc\uce59\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>View:<\/strong> \uc0ac\uc6a9\uc790\uc5d0\uac8c \ubcf4\uc5ec\uc9c0\ub294 \uc2dc\uac01\uc801 \uc694\uc18c\ub97c \ub2f4\ub2f9\ud569\ub2c8\ub2e4. WPF\uc5d0\uc11c\ub294 XAML(Extensible Application Markup Language)\uc744 \uc0ac\uc6a9\ud558\uc5ec \ubdf0\ub97c \uc815\uc758\ud558\uba70, \uc0ac\uc6a9\uc790\uac00 \uc0c1\ud638\uc791\uc6a9\ud560 \uc218 \uc788\ub294 UI \uc694\uc18c\ub4e4\uc744 \ud45c\uc2dc\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>ViewModel:<\/strong> \ubdf0\uc640 \ubaa8\ub378 \uc0ac\uc774\uc758 \uc911\uc7ac \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc774 \ud3ec\ud568\ub418\uba70, \ubdf0\uc5d0\uc11c \ubc1c\uc0dd\ud55c \uc774\ubca4\ud2b8\ub97c \ucc98\ub9ac\ud558\uace0, \ubaa8\ub378 \ub370\uc774\ud130\uc758 \ubcc0\ud654\ub97c \ubdf0\uc5d0 \ubc18\uc601\ud558\ub294 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. MVVM \ud328\ud134\uc758 \uc774\uc810<\/h2>\n<p>MVVM \ud328\ud134\uc744 \uc0ac\uc6a9\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc740 \uc774\uc810\uc744 \uc5bb\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\uc720\uc9c0\ubcf4\uc218\uc131:<\/strong> \ucf54\ub4dc\uac00 \uba85\ud655\ud558\uac8c \ubd84\ub9ac\ub418\uc5b4 \uc788\uc5b4 \uc720\uc9c0\ubcf4\uc218 \ubc0f \ud655\uc7a5\uc774 \uc6a9\uc774\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ud14c\uc2a4\ud2b8 \uc6a9\uc774\uc131:<\/strong> ViewModel\uc744 \ub3c5\ub9bd\uc801\uc73c\ub85c \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\uc73c\uba70, UI\uc640\uc758 \uc5f0\ub3d9 \uc5c6\uc774 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \uac80\uc99d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uc7ac\uc0ac\uc6a9\uc131:<\/strong> ViewModel\uacfc Model\uc744 \ub2e4\ub978 \ubdf0\uc5d0\uc11c \uc7ac\uc0ac\uc6a9\ud560 \uc218 \uc788\uc5b4 \uc0dd\uc0b0\uc131\uc774 \ud5a5\uc0c1\ub429\ub2c8\ub2e4.<\/li>\n<li><strong>\ub370\uc774\ud130 \ubc14\uc778\ub529:<\/strong> WPF\uc758 \uac15\ub825\ud55c \ub370\uc774\ud130 \ubc14\uc778\ub529 \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec UI \uc694\uc18c\uc640 \ub370\uc774\ud130 \ubaa8\ub378 \uac04\uc758 \ub3d9\uae30\ud654\ub97c \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>3. WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870 \uc124\uacc4<\/h2>\n<p>WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 MVVM \ud328\ud134\uc73c\ub85c \uc124\uacc4\ud560 \ub54c, \uae30\ubcf8\uc801\uc778 \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uad6c\uc131\ub429\ub2c8\ub2e4:<\/p>\n<pre>\n- MyApplication\n    - Models\n    - Views\n    - ViewModels\n    - Resources\n    - App.xaml\n    - MainWindow.xaml\n<\/pre>\n<p>\uac01 \ud3f4\ub354\ub294 \ud574\ub2f9 \uad6c\uc131 \uc694\uc18c\uc758 \ud074\ub798\uc2a4\ub97c \ud3ec\ud568\ud558\uace0 \uc788\uc73c\uba70, \uc774 \uad6c\uc870\ub97c \ud1b5\ud574 \uac01 \uc694\uc18c\uac00 \uba85\ud655\ud788 \ubd84\ub9ac\ub429\ub2c8\ub2e4.<\/p>\n<h2>4. \ubaa8\ub378(Model) \uc815\uc758<\/h2>\n<p>\ubaa8\ub378\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ub370\uc774\ud130\uc640 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ub2f4\uace0 \uc788\ub294 \ubd80\ubd84\uc785\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc800\uc7a5\ud558\ub294 \ubaa8\ub378\uc744 \uc815\uc758\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n<pre>\npublic class User\n{\n    public string Name { get; set; }\n    public string Email { get; set; }\n}\n<\/pre>\n<p>\uc774 \ubaa8\ub378\uc740 \uc0ac\uc6a9\uc790 \uc774\ub984\uacfc \uc774\uba54\uc77c \uc8fc\uc18c\ub97c \ud544\ub4dc\ub85c \ud3ec\ud568\ud558\uace0 \uc788\uc73c\uba70, \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \ub2f4\ub2f9\ud558\ub294 \uba54\uc11c\ub4dc\ub97c \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>5. \ubdf0(View) \uc815\uc758<\/h2>\n<p>\ubdf0\ub294 \uc0ac\uc6a9\uc790\uc5d0\uac8c \ud45c\uc2dc\ub418\ub294 UI \uc694\uc18c\ub4e4\uc785\ub2c8\ub2e4. WPF\uc5d0\uc11c\ub294 XAML\uc744 \uc0ac\uc6a9\ud558\uc5ec \ubdf0\ub97c \uc815\uc758\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uac04\ub2e8\ud55c UI\ub97c \uc815\uc758\ud558\ub294 XAML \ucf54\ub4dc\uc785\ub2c8\ub2e4:<\/p>\n<pre>\n<window height=\"350\" title=\"Main Window\" width=\"525\" x:class=\"MyApplication.Views.MainWindow\" xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\" xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\">\n    <grid>\n        <textbox height=\"30\" margin=\"10\" width=\"200\" x:name=\"NameTextBox\"><\/textbox>\n        <textbox height=\"30\" margin=\"10,50,0,0\" width=\"200\" x:name=\"EmailTextBox\"><\/textbox>\n        <button click=\"OnSubmitClick\" content=\"Submit\" height=\"30\" margin=\"10,100,0,0\" width=\"100\"><\/button>\n    <\/grid>\n<\/window>\n<\/pre>\n<p>\uc774 \uc608\uc81c\uc5d0\uc11c\ub294 \uc0ac\uc6a9\uc790 \uc774\ub984\uacfc \uc774\uba54\uc77c\uc744 \uc785\ub825\ud560 \uc218 \uc788\ub294 \ud14d\uc2a4\ud2b8\ubc15\uc2a4\uc640 submit \ubc84\ud2bc\uc774 \ud3ec\ud568\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>6. \ubdf0\ubaa8\ub378(ViewModel) \uc815\uc758<\/h2>\n<p>\ubdf0\ubaa8\ub378\uc740 \ubdf0\uc640 \ubaa8\ub378 \uac04\uc758 \uc5f0\uacb0 \uace0\ub9ac \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uac00 \uc785\ub825\ud55c \ub370\uc774\ud130\ub97c \ubaa8\ub378\uc5d0 \uc800\uc7a5\ud558\uace0, \ud2b9\uc815 \uc774\ubca4\ud2b8 (\uc608: \ubc84\ud2bc \ud074\ub9ad)\uac00 \ubc1c\uc0dd\ud588\uc744 \ub54c \ubaa8\ub378\uc758 \ub370\uc774\ud130\ub97c \uc5c5\ub370\uc774\ud2b8\ud558\ub294 \uba54\uc11c\ub4dc\ub97c \ud3ec\ud568\ud569\ub2c8\ub2e4:<\/p>\n<pre>\npublic class UserViewModel : INotifyPropertyChanged\n{\n    private User _user;\n    \n    public UserViewModel()\n    {\n        _user = new User();\n    }\n    \n    public string Name\n    {\n        get { return _user.Name; }\n        set\n        {\n            _user.Name = value;\n            OnPropertyChanged(nameof(Name));\n        }\n    }\n    \n    public string Email\n    {\n        get { return _user.Email; }\n        set\n        {\n            _user.Email = value;\n            OnPropertyChanged(nameof(Email));\n        }\n    }\n    \n    public void Submit()\n    {\n        \/\/ \uc0ac\uc6a9\uc790 \ub370\uc774\ud130\ub97c \uc800\uc7a5\ud558\ub294 \ub85c\uc9c1\n    }\n    \n    public event PropertyChangedEventHandler PropertyChanged;\n    \n    protected void OnPropertyChanged(string propertyName)\n    {\n        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));\n    }\n}\n<\/pre>\n<p>\uc704 ViewModel\uc740 \uc0ac\uc6a9\uc790\uc758 \uc774\ub984\uacfc \uc774\uba54\uc77c\uc5d0 \ub300\ud55c \ud504\ub85c\ud37c\ud2f0 \ubc0f \ub370\uc774\ud130\ub97c \uc81c\ucd9c\ud558\ub294 Submit \uba54\uc11c\ub4dc\ub97c \ud3ec\ud568\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>7. \ub370\uc774\ud130 \ubc14\uc778\ub529 \uc124\uc815<\/h2>\n<p>WPF\uc758 \ub370\uc774\ud130 \ubc14\uc778\ub529 \uae30\ub2a5\uc744 \uc774\uc6a9\ud558\uc5ec \ubdf0\uc640 \ubdf0\ubaa8\ub378 \uac04\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4. XAML\uc5d0\uc11c \ubc14\uc778\ub529\uc744 \ub2e4\uc74c\uacfc \uac19\uc774 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre>\n<window.datacontext>\n    <local:userviewmodel><\/local:userviewmodel>\n<\/window.datacontext>\n<\/pre>\n<p>\uadf8 \ud6c4, TextBox\uc758 Text \uc18d\uc131\uc744 \ub370\uc774\ud130 \ubc14\uc778\ub529\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre>\n<textbox ...=\"\" text=\"{Binding Name, UpdateSourceTrigger=PropertyChanged}\"><\/textbox>\n<textbox ...=\"\" text=\"{Binding Email, UpdateSourceTrigger=PropertyChanged}\"><\/textbox>\n<\/pre>\n<p>\uc774\uc81c \uc0ac\uc6a9\uc790\uac00 \ud14d\uc2a4\ud2b8\ubc15\uc2a4\uc5d0 \uc785\ub825\ud558\ub294 \uac12\uc774 ViewModel\uc758 Name \ubc0f Email \ud504\ub85c\ud37c\ud2f0\uc5d0 \uc790\ub3d9\uc73c\ub85c \uc5c5\ub370\uc774\ud2b8\ub429\ub2c8\ub2e4.<\/p>\n<h2>8. \uc774\ubca4\ud2b8 \ucc98\ub9ac<\/h2>\n<p>\ubc84\ud2bc \ud074\ub9ad \uc774\ubca4\ud2b8\ub97c \ucc98\ub9ac\ud558\uc5ec ViewModel\uc758 Submit \uba54\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\ub3c4\ub85d \uad6c\ud604\ud569\ub2c8\ub2e4:<\/p>\n<pre>\n<button command=\"{Binding SubmitCommand}\" content=\"Submit\" height=\"30\" margin=\"10,100,0,0\" width=\"100\"><\/button>\n<\/pre>\n<p>\uc704 \ucf54\ub4dc\ub294 Command \ud328\ud134\uc744 \uc0ac\uc6a9\ud558\uc5ec \ubc84\ud2bc \ud074\ub9ad \uc2dc ViewModel\uc758 Submit \uba54\uc11c\ub4dc\uac00 \ud638\ucd9c\ub418\ub3c4\ub85d \uc124\uc815\ud569\ub2c8\ub2e4.<\/p>\n<h2>9. \ucee4\ub9e8\ub4dc \uad6c\ud604<\/h2>\n<p>\uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c \ucee4\ub9e8\ub4dc\ub97c \uad6c\ud604\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc0c1\ud638\uc791\uc6a9\uc744 \ucc98\ub9ac\ud569\ub2c8\ub2e4.<\/p>\n<pre>\npublic ICommand SubmitCommand =&gt; new RelayCommand(Submit);\n<\/pre>\n<p>\uc5ec\uae30\uc11c RelayCommand\ub294 ICommand \uc778\ud130\ud398\uc774\uc2a4\ub97c \uad6c\ud604\ud558\ub294 \uac04\ub2e8\ud55c \ud074\ub798\uc2a4\uc785\ub2c8\ub2e4.<\/p>\n<h2>10. \ucee4\ub9e8\ub4dc \ud074\ub798\uc2a4 \uc815\uc758<\/h2>\n<p>RelayCommand \ud074\ub798\uc2a4\ub97c \uc815\uc758\ud558\uc5ec \ucee4\ub9e8\ub4dc\ub97c \uad6c\ud604\ud569\ub2c8\ub2e4:<\/p>\n<pre>\npublic class RelayCommand : ICommand\n{\n    private readonly Action<object> _execute;\n    private readonly Predicate<object> _canExecute;\n\n    public RelayCommand(Action<object> execute, Predicate<object> canExecute = null)\n    {\n        _execute = execute ?? throw new ArgumentNullException(nameof(execute));\n        _canExecute = canExecute;\n    }\n\n    public event EventHandler CanExecuteChanged\n    {\n        add { CommandManager.RequerySuggested += value; }\n        remove { CommandManager.RequerySuggested -= value; }\n    }\n\n    public bool CanExecute(object parameter)\n    {\n        return _canExecute == null || _canExecute(parameter);\n    }\n\n    public void Execute(object parameter)\n    {\n        _execute(parameter);\n    }\n}\n<\/object><\/object><\/object><\/object><\/pre>\n<p>\uc774 RelayCommand \ud074\ub798\uc2a4\ub97c \ud1b5\ud574 \ub2e4\uc591\ud55c \uba85\ub839\uc744 \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>11. \ubdf0\uc640 ViewModel \uc5f0\uacb0<\/h2>\n<p>View\uc640 ViewModel\uc774 \uc798 \uc5f0\uacb0\ub418\uc5b4 \uc788\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4. \ub370\uc774\ud130 \ubc14\uc778\ub529\uacfc \ucee4\ub9e8\ub4dc\uac00 \uc815\uc0c1\uc801\uc73c\ub85c \uc791\ub3d9\ud558\ub294\uc9c0 \ud655\uc778\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\uc5d0\uc11c\uc758 \ubcc0\ud654\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \ubc18\uc601\ud558\uac8c \ub429\ub2c8\ub2e4.<\/p>\n<h2>12. \uc758\uc874\uc131 \uc8fc\uc785\uacfc MVVM<\/h2>\n<p>MVVM\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \uad6c\ud604\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc758\uc874\uc131 \uc8fc\uc785(Dependency Injection) \ud328\ud134\uc744 \ud65c\uc6a9\ud558\uc5ec ViewModel\uc5d0 \ud544\uc694\ud55c \uc758\uc874\uc131\uc744 \uc8fc\uc785\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc774 \ubc29\ubc95\uc744 \ud1b5\ud574 \ud14c\uc2a4\ud2b8 \uc6a9\uc774\uc131\uacfc \ucf54\ub4dc\uc758 \uc720\uc5f0\uc131\uc744 \ub192\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>\uacb0\ub860<\/h2>\n<p>\uc774\uc640 \uac19\uc740 \ubc29\uc2dd\uc73c\ub85c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 MVVM \ud328\ud134\uc73c\ub85c \uc124\uacc4\ud558\uba74, \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uacfc \uc7ac\uc0ac\uc6a9\uc131\uc744 \ub192\uc774\uace0, \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\uc2b5\ub2c8\ub2e4. MVVM \ud328\ud134\uc744 \ud1b5\ud55c \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uacfc UI\uc758 \ubd84\ub9ac\ub294 \ubcf5\uc7a1\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc791\uc131\ud560 \ub54c \ub9e4\uc6b0 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4.<\/p>\n<p>\uc774\uc81c \uc6b0\ub9ac\ub294 MVVM\uc744 \ud65c\uc6a9\ud558\uc5ec WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \uc124\uacc4\ud558\uace0 \uad6c\ud604\ud560 \uc218 \uc788\uac8c \ub418\uc5c8\uc73c\uba70, \uc2e4\uc81c \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0 MVVM \ud328\ud134\uc744 \uc801\uadf9\uc801\uc73c\ub85c \uc801\uc6a9\ud560 \uc218 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4. \uc774 \uae00\uc774 \uc5ec\ub7ec\ubd84\uc758 WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0 \ub3c4\uc6c0\uc774 \ub418\uae38 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Presentation Foundation(WPF)\uc740 \ub370\uc2a4\ud06c\ud0d1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\uae30 \uc704\ud574 Microsoft\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. WPF\ub294 \ub6f0\uc5b4\ub09c \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\ub97c \ub9cc\ub4e4 \uc218 \uc788\ub294 \uac15\ub825\ud55c \uae30\ub2a5\ub4e4\uc744 \uc81c\uacf5\ud558\uba70, \uc5ec\uae30\uc11c MVVM(Model-View-ViewModel) \ud328\ud134\uc744 \ud65c\uc6a9\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \uc124\uacc4\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. MVVM \ud328\ud134 \uac1c\uc694 MVVM\uc740 Model-View-ViewModel\uc758 \uc57d\uc790\ub85c, \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\uc640 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ubd84\ub9ac\ud558\uae30 \uc704\ud574 \uc124\uacc4\ub41c \ub514\uc790\uc778 \ud328\ud134\uc785\ub2c8\ub2e4. \uc774 \ud328\ud134\uc740 \ub2e4\uc74c \uc138 \uac00\uc9c0 \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c\ub85c &hellip; <a href=\"https:\/\/atmokpo.com\/w\/31273\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4&#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-31273","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>WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4 - \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\/31273\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"Windows Presentation Foundation(WPF)\uc740 \ub370\uc2a4\ud06c\ud0d1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\uae30 \uc704\ud574 Microsoft\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. WPF\ub294 \ub6f0\uc5b4\ub09c \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\ub97c \ub9cc\ub4e4 \uc218 \uc788\ub294 \uac15\ub825\ud55c \uae30\ub2a5\ub4e4\uc744 \uc81c\uacf5\ud558\uba70, \uc5ec\uae30\uc11c MVVM(Model-View-ViewModel) \ud328\ud134\uc744 \ud65c\uc6a9\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \uc124\uacc4\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. MVVM \ud328\ud134 \uac1c\uc694 MVVM\uc740 Model-View-ViewModel\uc758 \uc57d\uc790\ub85c, \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\uc640 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ubd84\ub9ac\ud558\uae30 \uc704\ud574 \uc124\uacc4\ub41c \ub514\uc790\uc778 \ud328\ud134\uc785\ub2c8\ub2e4. \uc774 \ud328\ud134\uc740 \ub2e4\uc74c \uc138 \uac00\uc9c0 \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c\ub85c &hellip; \ub354 \ubcf4\uae30 &quot;WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/31273\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-28T11:18:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:45:41+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\/31273\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31273\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4\",\"datePublished\":\"2024-10-28T11:18:54+00:00\",\"dateModified\":\"2024-11-26T06:45:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31273\/\"},\"wordCount\":78,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"WPF \uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/31273\/\",\"url\":\"https:\/\/atmokpo.com\/w\/31273\/\",\"name\":\"WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-28T11:18:54+00:00\",\"dateModified\":\"2024-11-26T06:45:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31273\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/31273\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/31273\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4\"}]},{\"@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":"WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4 - \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\/31273\/","og_locale":"ko_KR","og_type":"article","og_title":"WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"Windows Presentation Foundation(WPF)\uc740 \ub370\uc2a4\ud06c\ud0d1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\uae30 \uc704\ud574 Microsoft\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. WPF\ub294 \ub6f0\uc5b4\ub09c \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\ub97c \ub9cc\ub4e4 \uc218 \uc788\ub294 \uac15\ub825\ud55c \uae30\ub2a5\ub4e4\uc744 \uc81c\uacf5\ud558\uba70, \uc5ec\uae30\uc11c MVVM(Model-View-ViewModel) \ud328\ud134\uc744 \ud65c\uc6a9\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \uc124\uacc4\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. MVVM \ud328\ud134 \uac1c\uc694 MVVM\uc740 Model-View-ViewModel\uc758 \uc57d\uc790\ub85c, \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\uc640 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ubd84\ub9ac\ud558\uae30 \uc704\ud574 \uc124\uacc4\ub41c \ub514\uc790\uc778 \ud328\ud134\uc785\ub2c8\ub2e4. \uc774 \ud328\ud134\uc740 \ub2e4\uc74c \uc138 \uac00\uc9c0 \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c\ub85c &hellip; \ub354 \ubcf4\uae30 \"WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4\"","og_url":"https:\/\/atmokpo.com\/w\/31273\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-28T11:18:54+00:00","article_modified_time":"2024-11-26T06:45:41+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\/31273\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/31273\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4","datePublished":"2024-10-28T11:18:54+00:00","dateModified":"2024-11-26T06:45:41+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/31273\/"},"wordCount":78,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["WPF \uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/31273\/","url":"https:\/\/atmokpo.com\/w\/31273\/","name":"WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-28T11:18:54+00:00","dateModified":"2024-11-26T06:45:41+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/31273\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/31273\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/31273\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"WPF \uac15\uc88c, MVVM\uc744 \uc0ac\uc6a9\ud55c WPF \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc124\uacc4"}]},{"@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\/31273","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=31273"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/31273\/revisions"}],"predecessor-version":[{"id":31274,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/31273\/revisions\/31274"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=31273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=31273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=31273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}