{"id":31049,"date":"2024-10-28T10:44:26","date_gmt":"2024-10-28T10:44:26","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=31049"},"modified":"2024-11-26T06:46:33","modified_gmt":"2024-11-26T06:46:33","slug":"uwp-%ea%b0%9c%eb%b0%9c-userdetailviewmodel-%eb%b7%b0%eb%aa%a8%eb%8d%b8-%ec%88%98%ec%a0%95%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/31049\/","title":{"rendered":"UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30"},"content":{"rendered":"<p>UWP (Universal Windows Platform) \uac1c\ubc1c\uc740 \ud604\ub300\uc758 \ub2e4\uc591\ud55c \ud50c\ub7ab\ud3fc\uc5d0\uc11c \uc2e4\ud589\ub420 \uc218 \uc788\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \ub370 \ud544\uc218\uc801\uc778 \uc694\uc18c\uc785\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 UWP \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0\uc11c \uc911\uc694\ud55c \ubd80\ubd84\uc778 MVVM (Model-View-ViewModel) \uc544\ud0a4\ud14d\ucc98\ub97c \uc911\uc2ec\uc73c\ub85c UserDetailViewModel\uc744 \uc218\uc815\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c MVVM \ud328\ud134\uc758 \uc911\uc694\uc131\uacfc \uc0ac\uc6a9\ubc95\uc744 \uc124\uba85\ud558\uace0, \uad6c\uccb4\uc801\uc778 \ucf54\ub4dc \uc608\uc81c\ub97c \ud1b5\ud574 \uc2e4\uc2b5\uc744 \uc9c4\ud589\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. MVVM \ud328\ud134 \uc774\ud574\ud558\uae30<\/h2>\n<p>MVVM \ud328\ud134\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uad6c\uc131\uc744 \ubd84\ub9ac\ud558\uc5ec \uc720\uc9c0\ubcf4\uc218\uc131\uacfc \uc7ac\uc0ac\uc6a9\uc131\uc744 \ub192\uc774\ub294 \uc544\ud0a4\ud14d\ucc98 \ud328\ud134\uc785\ub2c8\ub2e4. MVVM\uc740 \ub2e4\uc74c\uc758 \uc138 \uac00\uc9c0 \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\uc640 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ub2f4\ub2f9\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>View:<\/strong> \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4(UI)\ub97c \uad6c\uc131\ud558\uba70, \uc0ac\uc6a9\uc790\uac00 \uc774\ubca4\ud2b8\ub97c \ud1b5\ud574 Model\uacfc \uc0c1\ud638\uc791\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ud569\ub2c8\ub2e4.<\/li>\n<li><strong>ViewModel:<\/strong> View\uc640 Model \uac04\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \uc911\uc7ac\ud558\ub294 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \uc8fc\ub85c \ub370\uc774\ud130 \ubc14\uc778\ub529, \uba85\ub839, \uc774\ubca4\ud2b8 \ucc98\ub9ac\uc640 \uad00\ub828\ub41c \ub85c\uc9c1\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. UWP \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c UserDetailViewModel \uc18c\uac1c<\/h2>\n<p>UserDetailViewModel\uc740 \ud2b9\uc815 \uc0ac\uc6a9\uc790\uc758 \uc138\ubd80 \uc815\ubcf4\ub97c \ud45c\uc2dc\ud558\uace0 \ud3b8\uc9d1\ud558\ub294 \uae30\ub2a5\uc744 \ub2f4\ub2f9\ud558\ub294 \ubdf0\ubaa8\ub378\uc785\ub2c8\ub2e4. \uc774\ub294 \uc0ac\uc6a9\uc790 \uc815\ubcf4(\uc608: \uc774\ub984, \uc774\uba54\uc77c, \uc804\ud654\ubc88\ud638 \ub4f1)\ub97c UI\uc5d0 \ubc14\uc778\ub529\ud560 \uc218 \uc788\ub294 \ud504\ub85c\ud37c\ud2f0\uc640 \ud574\ub2f9 \uc815\ubcf4\ub97c \uc218\uc815\ud558\ub294 \uba85\ub839\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/p>\n<p>UWP \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c UserDetailViewModel\uc744 \uad6c\ud604\ud568\uc73c\ub85c\uc368, \uc0ac\uc6a9\uc790\ub294 UI\uc5d0\uc11c \uac04\ud3b8\ud558\uac8c \uc790\uc2e0\uc758 \uc815\ubcf4\ub97c \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud574\ub2f9 \ubdf0\ubaa8\ub378\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uc8fc\uc694 \uae30\ub2a5\uc744 \ud3ec\ud568\ud574\uc57c \ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc0ac\uc6a9\uc790 \uc815\ubcf4 \ub85c\ub4dc \ubc0f \uc800\uc7a5<\/li>\n<li>\uc0ac\uc6a9\uc790 \uc815\ubcf4\uc758 \ubcc0\uacbd\uc744 \uac10\uc9c0 \ubc0f \ubc18\uc601<\/li>\n<li>UI\uc640\uc758 \ub370\uc774\ud130 \ubc14\uc778\ub529 \uc9c0\uc6d0<\/li>\n<\/ul>\n<h2>3. UserDetailViewModel \uae30\ubcf8 \uad6c\uc870<\/h2>\n<p>\uc5ec\uae30\uc11c\ub294 \uac04\ub2e8\ud55c UserDetailViewModel\uc758 \uae30\ubcf8 \uad6c\uc870\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc544\ub798\ub294 C#\uc73c\ub85c \uc791\uc131\ud55c \uae30\ubcf8 \ucf54\ub4dc\uc785\ub2c8\ub2e4:<\/p>\n<pre><code class=\"language-csharp\">using System.ComponentModel;\nusing System.Runtime.CompilerServices;\nusing System.Windows.Input;\n\npublic class UserDetailViewModel : INotifyPropertyChanged\n{\n    private string _name;\n    private string _email;\n    private string _phoneNumber;\n\n    public string Name\n    {\n        get { return _name; }\n        set { SetProperty(ref _name, value); }\n    }\n\n    public string Email\n    {\n        get { return _email; }\n        set { SetProperty(ref _email, value); }\n    }\n\n    public string PhoneNumber\n    {\n        get { return _phoneNumber; }\n        set { SetProperty(ref _phoneNumber, value); }\n    }\n\n    public ICommand SaveCommand { get; private set; }\n\n    public UserDetailViewModel()\n    {\n        SaveCommand = new RelayCommand(Save);\n    }\n\n    private void Save()\n    {\n        \/\/ \uc800\uc7a5 \ub85c\uc9c1 \uad6c\ud604\n        \/\/ \uc608: \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc800\uc7a5\n    }\n\n    public event PropertyChangedEventHandler PropertyChanged;\n\n    protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)\n    {\n        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));\n    }\n\n    protected bool SetProperty<t>(ref T storage, T value, [CallerMemberName] string propertyName = null)\n    {\n        if (Equals(storage, value)) return false;\n        storage = value;\n        OnPropertyChanged(propertyName);\n        return true;\n    }\n}\n<\/t><\/code><\/pre>\n<h2>4. ViewModel\uc5d0\uc11c\uc758 \ub370\uc774\ud130 \ubc14\uc778\ub529 \uad6c\ud604<\/h2>\n<p>UWP\uc5d0\uc11c\ub294 ViewModel\uc5d0\uc11c \ub370\uc774\ud130\ub97c \ubc14\uc778\ub529\ud558\ub294 \uac83\uc774 \ud575\uc2ec\uc785\ub2c8\ub2e4. \uc704\uc758 UserDetailViewModel\uc740 INotifyPropertyChanged \uc778\ud130\ud398\uc774\uc2a4\ub97c \uad6c\ud604\ud558\uc5ec, \uc18d\uc131 \uac12\uc774 \ubcc0\uacbd\ub420 \ub54c \uc790\ub3d9\uc73c\ub85c UI\uc5d0 \ubc18\uc601\ub418\ub3c4\ub85d \ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\ubdf0\uc640\uc758 \ubc14\uc778\ub529\uc744 \uc704\ud574 XAML \ud30c\uc77c\uc5d0\uc11c \ub2e4\uc74c\uacfc \uac19\uc774 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code class=\"language-xml\">&lt;Page.DataContext&gt;\n    &lt;local:UserDetailViewModel \/&gt;\n&lt;\/Page.DataContext&gt;\n\n&lt;StackPanel&gt;\n    &lt;TextBox Text=\"{Binding Name, Mode=TwoWay}\" \/&gt;\n    &lt;TextBox Text=\"{Binding Email, Mode=TwoWay}\" \/&gt;\n    &lt;TextBox Text=\"{Binding PhoneNumber, Mode=TwoWay}\" \/&gt;\n    &lt;Button Content=\"\uc800\uc7a5\" Command=\"{Binding SaveCommand}\" \/&gt;\n&lt;\/StackPanel&gt;\n<\/code><\/pre>\n<p>\uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c \uac01 TextBox\ub294 ViewModel\uc758 \uc18d\uc131\uacfc \ubc14\uc778\ub529\ub418\uc5b4 \uc788\uc73c\uba70, \uc0ac\uc6a9\uc790\uac00 \uc815\ubcf4\ub97c \uc785\ub825\ud560 \ub54c\ub9c8\ub2e4 \ud574\ub2f9 \uc18d\uc131\uc774 \uc790\ub3d9\uc73c\ub85c \uc5c5\ub370\uc774\ud2b8\ub429\ub2c8\ub2e4. \uc774\ub807\uac8c \ud568\uc73c\ub85c\uc368 \ucf54\ub4dc\uc758 \uc911\ubcf5\uc744 \uc904\uc774\uace0, UI\uc640 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc758 \ubd84\ub9ac\ub97c \uadf9\ub300\ud654\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>5. UserDetailViewModel \uae30\ub2a5 \ud655\uc7a5<\/h2>\n<p>\uc774\uc81c UserDetailViewModel\uc5d0 \ucd94\uac00\uc801\uc778 \uae30\ub2a5\uc744 \ucd94\uac00\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\uc790 \uc815\ubcf4\uc758 \uc720\ud6a8\uc131\uc744 \uac80\uc0ac\ud558\ub294 \uae30\ub2a5\uc744 \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code class=\"language-csharp\">private string _errorMessage;\npublic string ErrorMessage\n{\n    get { return _errorMessage; }\n    set { SetProperty(ref _errorMessage, value); }\n}\n\nprivate bool ValidateInputs()\n{\n    if (string.IsNullOrWhiteSpace(Name))\n    {\n        ErrorMessage = \"\uc774\ub984\uc740 \ud544\uc218\uc785\ub2c8\ub2e4.\";\n        return false;\n    }\n    \/\/ \ucd94\uac00\uc801\uc778 \uc720\ud6a8\uc131 \uac80\uc0ac \uad6c\ud604\n    return true;\n}\n\nprivate void Save()\n{\n    if (!ValidateInputs())\n    {\n        \/\/ \uc720\ud6a8\uc131 \uac80\uc0ac \uc2e4\ud328 \uc2dc \uc800\uc7a5\ud558\uc9c0 \uc54a\uc74c\n        return;\n    }\n    \n    \/\/ \uc800\uc7a5 \ub85c\uc9c1 \uad6c\ud604\n}\n<\/code><\/pre>\n<p>\uc774\uc81c \uc0ac\uc6a9\uc790\uac00 \uc815\ubcf4\ub97c \uc800\uc7a5\ud560 \ub54c, \uc785\ub825\uac12\uc758 \uc720\ud6a8\uc131\uc744 \uba3c\uc800 \uac80\uc0ac\ud558\uace0, \ubb38\uc81c\uac00 \uc788\uc744 \uacbd\uc6b0 \uc624\ub958 \uba54\uc2dc\uc9c0\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774\ub294 \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \uac1c\uc120\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.<\/p>\n<h2>6. \ub370\uc774\ud130 \uc800\uc7a5\uc18c\uc640\uc758 \ud1b5\ud569<\/h2>\n<p>UserDetailViewModel\uc744 \uc2e4\uc81c \ub370\uc774\ud130 \uc800\uc7a5\uc18c\uc640 \ud1b5\ud569\ud558\ub294 \ubc29\ubc95\ub3c4 \ub9e4\uc6b0 \uc911\uc694\ud569\ub2c8\ub2e4. \uc5ec\uae30\uc11c\ub294 \uac04\ub2e8\ud55c \uc608\ub85c LocalStorage\ub97c \uc0ac\uc6a9\ud55c \ub370\uc774\ud130 \uc800\uc7a5 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc8fc\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code class=\"language-csharp\">private async void LoadUserData()\n{\n    \/\/ \uc0ac\uc6a9\uc790 \ub370\uc774\ud130\ub97c \ub85c\ub4dc\ud558\ub294 \ube44\ub3d9\uae30 \uba54\uc11c\ub4dc\n    var userData = await LoadDataFromStorageAsync();\n    Name = userData.Name;\n    Email = userData.Email;\n    PhoneNumber = userData.PhoneNumber;\n}\n\nprivate async Task<userdata> LoadDataFromStorageAsync()\n{\n    \/\/ \ube44\ub3d9\uae30\ub85c \ub370\uc774\ud130 \uac00\uc838\uc624\uae30 \uad6c\ud604\n}\n\nprivate async Task SaveDataToStorageAsync()\n{\n    \/\/ \ube44\ub3d9\uae30\ub85c \ub370\uc774\ud130 \uc800\uc7a5\ud558\uae30 \uad6c\ud604\n}\n\nprivate void Save()\n{\n    if (!ValidateInputs())\n    {\n        return;\n    }\n\n    await SaveDataToStorageAsync();\n}\n<\/userdata><\/code><\/pre>\n<p>\uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c LoadUserData \uba54\uc11c\ub4dc\ub294 \ube44\ub3d9\uae30\uc801\uc73c\ub85c \uc0ac\uc6a9\uc790 \ub370\uc774\ud130\ub97c \ub85c\ub4dc\ud558\uace0, SaveDataToStorageAsync \uba54\uc11c\ub4dc\ub294 \ubcc0\uacbd\ub41c \uc0ac\uc6a9\uc790\uc758 \uc815\ubcf4\ub97c \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n<h2>7. \ub3d9\uc791 \ud655\uc778\ud558\uae30<\/h2>\n<p>\uc774\uc81c \ubaa8\ub4e0 \uad6c\ud604\uc774 \uc644\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ubaa8\ub4e0 \uc9dc\uc5ec\uc9c4 \ucf54\ub4dc\uac00 \uc2e4\uc81c\ub85c \uc608\uc0c1\ub300\ub85c \ub3d9\uc791\ud558\ub294\uc9c0 \ud655\uc778\ud558\uae30 \uc704\ud574\uc11c UWP \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ube4c\ub4dc\ud558\uace0 \uc2e4\ud589\ud574\ubd05\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\ub294 UI\ub97c \ud1b5\ud574 \uc815\ubcf4\ub97c \uc785\ub825\ud558\uace0, &#8220;\uc800\uc7a5&#8221; \ubc84\ud2bc\uc744 \ud074\ub9ad\ud558\uc5ec \uc815\ubcf4\ub97c \uc800\uc7a5\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc744 \uc774\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>8. \uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \ud3ec\uc2a4\ud305\uc5d0\uc11c\ub294 UWP \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c UserDetailViewModel\uc744 \uc218\uc815\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. MVVM \ud328\ud134\uc744 \ud1b5\ud574 \ubdf0, \ubdf0\ubaa8\ub378, \ubaa8\ub378 \uac04\uc758 \uba85\ud655\ud55c \ubd84\ub9ac\ub97c \uc2e4\ud604\ud558\uc5ec \uc720\uc9c0 \ubcf4\uc218\uc131\uacfc \uc7ac\uc0ac\uc6a9\uc131\uc744 \ub192\uc77c \uc218 \uc788\uc5c8\uc2b5\ub2c8\ub2e4. \ub610\ud55c, \uc720\ud6a8\uc131 \uac80\uc0ac \ubc0f \ub370\uc774\ud130 \uc800\uc7a5\uc18c\uc640\uc758 \ud1b5\ud569\uc744 \ud1b5\ud574 \uc2e4\uc81c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\uc758 \ub3d9\uc791\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc55e\uc73c\ub85c \ub354 \ub9ce\uc740 UWP \uac1c\ubc1c\uc5d0 \ub300\ud55c \uc815\ubcf4\ub97c \ub2e4\ub8f0 \uc608\uc815\uc774\ub2c8, \ub9ce\uc740 \uad00\uc2ec \ubd80\ud0c1\ub4dc\ub9bd\ub2c8\ub2e4!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>UWP (Universal Windows Platform) \uac1c\ubc1c\uc740 \ud604\ub300\uc758 \ub2e4\uc591\ud55c \ud50c\ub7ab\ud3fc\uc5d0\uc11c \uc2e4\ud589\ub420 \uc218 \uc788\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \ub370 \ud544\uc218\uc801\uc778 \uc694\uc18c\uc785\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 UWP \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0\uc11c \uc911\uc694\ud55c \ubd80\ubd84\uc778 MVVM (Model-View-ViewModel) \uc544\ud0a4\ud14d\ucc98\ub97c \uc911\uc2ec\uc73c\ub85c UserDetailViewModel\uc744 \uc218\uc815\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c MVVM \ud328\ud134\uc758 \uc911\uc694\uc131\uacfc \uc0ac\uc6a9\ubc95\uc744 \uc124\uba85\ud558\uace0, \uad6c\uccb4\uc801\uc778 \ucf54\ub4dc \uc608\uc81c\ub97c \ud1b5\ud574 \uc2e4\uc2b5\uc744 \uc9c4\ud589\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. MVVM \ud328\ud134 \uc774\ud574\ud558\uae30 MVVM \ud328\ud134\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uad6c\uc131\uc744 \ubd84\ub9ac\ud558\uc5ec &hellip; <a href=\"https:\/\/atmokpo.com\/w\/31049\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30&#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":[38],"tags":[],"class_list":["post-31049","post","type-post","status-publish","format-standard","hentry","category-uwp-"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30 - \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\/31049\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"UWP (Universal Windows Platform) \uac1c\ubc1c\uc740 \ud604\ub300\uc758 \ub2e4\uc591\ud55c \ud50c\ub7ab\ud3fc\uc5d0\uc11c \uc2e4\ud589\ub420 \uc218 \uc788\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \ub370 \ud544\uc218\uc801\uc778 \uc694\uc18c\uc785\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 UWP \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0\uc11c \uc911\uc694\ud55c \ubd80\ubd84\uc778 MVVM (Model-View-ViewModel) \uc544\ud0a4\ud14d\ucc98\ub97c \uc911\uc2ec\uc73c\ub85c UserDetailViewModel\uc744 \uc218\uc815\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c MVVM \ud328\ud134\uc758 \uc911\uc694\uc131\uacfc \uc0ac\uc6a9\ubc95\uc744 \uc124\uba85\ud558\uace0, \uad6c\uccb4\uc801\uc778 \ucf54\ub4dc \uc608\uc81c\ub97c \ud1b5\ud574 \uc2e4\uc2b5\uc744 \uc9c4\ud589\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. MVVM \ud328\ud134 \uc774\ud574\ud558\uae30 MVVM \ud328\ud134\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uad6c\uc131\uc744 \ubd84\ub9ac\ud558\uc5ec &hellip; \ub354 \ubcf4\uae30 &quot;UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/31049\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-28T10:44:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:46:33+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\/31049\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31049\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30\",\"datePublished\":\"2024-10-28T10:44:26+00:00\",\"dateModified\":\"2024-11-26T06:46:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31049\/\"},\"wordCount\":54,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"UWP \uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/31049\/\",\"url\":\"https:\/\/atmokpo.com\/w\/31049\/\",\"name\":\"UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-28T10:44:26+00:00\",\"dateModified\":\"2024-11-26T06:46:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/31049\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/31049\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/31049\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30\"}]},{\"@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":"UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30 - \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\/31049\/","og_locale":"ko_KR","og_type":"article","og_title":"UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"UWP (Universal Windows Platform) \uac1c\ubc1c\uc740 \ud604\ub300\uc758 \ub2e4\uc591\ud55c \ud50c\ub7ab\ud3fc\uc5d0\uc11c \uc2e4\ud589\ub420 \uc218 \uc788\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \ub370 \ud544\uc218\uc801\uc778 \uc694\uc18c\uc785\ub2c8\ub2e4. \uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 UWP \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0\uc11c \uc911\uc694\ud55c \ubd80\ubd84\uc778 MVVM (Model-View-ViewModel) \uc544\ud0a4\ud14d\ucc98\ub97c \uc911\uc2ec\uc73c\ub85c UserDetailViewModel\uc744 \uc218\uc815\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c MVVM \ud328\ud134\uc758 \uc911\uc694\uc131\uacfc \uc0ac\uc6a9\ubc95\uc744 \uc124\uba85\ud558\uace0, \uad6c\uccb4\uc801\uc778 \ucf54\ub4dc \uc608\uc81c\ub97c \ud1b5\ud574 \uc2e4\uc2b5\uc744 \uc9c4\ud589\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. MVVM \ud328\ud134 \uc774\ud574\ud558\uae30 MVVM \ud328\ud134\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uad6c\uc131\uc744 \ubd84\ub9ac\ud558\uc5ec &hellip; \ub354 \ubcf4\uae30 \"UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/31049\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-28T10:44:26+00:00","article_modified_time":"2024-11-26T06:46:33+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\/31049\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/31049\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30","datePublished":"2024-10-28T10:44:26+00:00","dateModified":"2024-11-26T06:46:33+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/31049\/"},"wordCount":54,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["UWP \uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/31049\/","url":"https:\/\/atmokpo.com\/w\/31049\/","name":"UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-28T10:44:26+00:00","dateModified":"2024-11-26T06:46:33+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/31049\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/31049\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/31049\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"UWP \uac1c\ubc1c, UserDetailViewModel \ubdf0\ubaa8\ub378 \uc218\uc815\ud558\uae30"}]},{"@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\/31049","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=31049"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/31049\/revisions"}],"predecessor-version":[{"id":31050,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/31049\/revisions\/31050"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=31049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=31049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=31049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}