{"id":9475,"date":"2018-10-24T23:44:12","date_gmt":"2018-10-24T14:44:12","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=9475"},"modified":"2018-10-25T17:24:23","modified_gmt":"2018-10-25T08:24:23","slug":"%e3%83%a6%e3%83%bc%e3%82%b6%e3%83%bc%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab%e5%86%85%e3%81%a7%e8%a8%ad%e5%ae%9a%e3%81%97%e3%81%9f%e5%80%a4%e3%82%92-viewmodel-%e3%81%ab%e5%8f%8d%e6%98%a0","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/9475","title":{"rendered":"\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u5185\u3067\u66f4\u65b0\u3057\u305f\u5024\u3092\u89aa\u306e ViewModel \u306b\u53cd\u6620\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>MVVM \u3067\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f5c\u308b\u3068\u304d\u306b\u5fae\u5999\u306b\u30cf\u30de\u308b\u306e\u304c\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u5185\u306b TextBox \u3092\u8cbc\u308a\u4ed8\u3051\u3066\u304a\u3044\u3066\u3001\u5916\u5074\u306e ViewModel \u304b\u3089\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u9006\u306b\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u5185\u306e TextBox \u306b\u5165\u529b\u3055\u308c\u305f\u5024\u3092 ViewModel \u306e\u53cd\u6620\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u96e3\u5100\u3057\u307e\u3059\u3002\u3068\u3044\u3046\u304b\u3001\u96e3\u5100\u3057\u3066\u3044\u305f\u306e\u3060\u3051\u3069\u3001\u89e3\u6c7a\u3067\u304d\u305f\u306e\u3067\u66f8\u304d\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-28.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-28.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"601\" height=\"416\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>UserControl \u306b\u5bfe\u3057\u3066 ViewModel \u5074\u304b\u3089\u30d0\u30a4\u30f3\u30c9\u3057\u305f\u3044\u5834\u5408\u306f\u3001DependencyProperty \u3092\u4f7f\u3063\u3066\u4f9d\u5b58\u95a2\u4fc2\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f5c\u3063\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u8868\u793a\u306e\u305f\u3081\u306e TextBlock \u3068\u304b DataGrid \u3092\u4f7f\u3063\u305f\u30ea\u30b9\u30c8\u8868\u793a\u306e\u5834\u5408\u306f\u3001\u3053\u308c\u3067\u5341\u5206\u306a\u306e\u3067\u3042\u307e\u308a\u554f\u984c\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u3055\u3066\u3001UserControl \u5185\u306b\u8cbc\u308a\u4ed8\u3051\u305f TextBox \u304b\u3089 ViewModel \u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u53cd\u6620\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3069\u3046\u3057\u305f\u3082\u306e\u304b\uff1f\u3068\u8003\u3048\u3066\u3057\u307e\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u8272\u3005\u8abf\u3079\u3066\u3044\u304f\u3068\u3001ElementName \u3092\u4f7f\u3063\u3066 TextBox.Text \u306b\u76f4\u63a5\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u4ed5\u7d44\u307f\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u65b9\u6cd5\u3060\u3068 UserControl \u306e\u72ec\u7acb\u6027\u304c\u4f4e\u304f\u306a\u3063\u3066\u6c4e\u7528\u6027\u304c\u4f4e\u304f\u306a\u308a\u307e\u3059\u3002\u3058\u3083\u3042\u3001\u6a19\u6e96\u306e TextBox \u3084\u305d\u306e\u4ed6\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u304c\u308a\u304c\u308a\u306b\u30ab\u30b9\u30bf\u30e0\u3067\u7d44\u3093\u3067\u3057\u307e\u3048\u3070\u3067\u304d\u305d\u3046\u306a\u3082\u306e\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u3082\u3061\u3087\u3063\u3068\u5927\u5909\u3059\u304e\u308b\u3002<\/p>\n<h2>BindingOperations.GetBindingExpression \u3092\u4f7f\u3046<\/h2>\n<p>.NET Framework \u306e WPF \u306e TextBox \u30b3\u30fc\u30c9\u3092\u76f4\u63a5\u773a\u3081\u3066\u3044\u304f\u3068 <a title=\"https:\/\/referencesource.microsoft.com\/#PresentationFramework\/src\/Framework\/System\/Windows\/Controls\/TextBox.cs,77a66fa4f401a49f\" href=\"https:\/\/referencesource.microsoft.com\/#PresentationFramework\/src\/Framework\/System\/Windows\/Controls\/TextBox.cs,77a66fa4f401a49f\">https:\/\/referencesource.microsoft.com\/#PresentationFramework\/src\/Framework\/System\/Windows\/Controls\/TextBox.cs,77a66fa4f401a49f<\/a>? BindingOperations.GetBindingExpression \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u3063\u3066\u3001\u30d0\u30a4\u30f3\u30c9\u95a2\u4fc2\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d0\u30a4\u30f3\u30c9\u5148\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u3092\u793a\u3059 Path \u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u3001\u7d50\u3073\u3064\u3044\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u793a\u3059 Target \u30d7\u30ed\u30d1\u30c6\u30a3\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304b\u3089 ViewModel \u3078\u306e\u5024\u306e\u8a2d\u5b9a\uff08\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304b\u3089\u30bd\u30fc\u30b9\u3078\u306e\u53cd\u6620\uff09\u306f\u3001\u4e3b\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304b\u3089\u30d5\u30a9\u30fc\u30ab\u30b9\u304c\u5916\u308c\u305f\u3068\u304d\u306b\u306a\u308b\u306e\u3067 LostFocus \u30a4\u30d9\u30f3\u30c8\u3067\u8a2d\u5b9a\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b7\u30f3\u30d7\u30eb\u306b\u66f8\u3051\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nthis.text.LostFocus += (_, __) =&gt; {\r\n    BindingExpression beb = BindingOperations.GetBindingExpression(this, YourNameProperty);\r\n    if (beb != null)\r\n    {\r\n        beb.Target.SetValue(YourNameProperty, text.Text);\r\n        beb.UpdateSource();\r\n    }\r\n};\r\n<\/pre>\n<p>\u30d0\u30a4\u30f3\u30c9\u3092\u3057\u3066\u3044\u306a\u3044\u3068\u3001BindingOperations.GetBindingExpression \u30e1\u30bd\u30c3\u30c9\u306f null \u3092\u8fd4\u3059\u306e\u3067\u305d\u308c\u3060\u3051\u30c1\u30a7\u30c3\u30af\u3092\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30d0\u30a4\u30f3\u30c9\u53ef\u80fd\u306a\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f5c\u308b<\/h2>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-29.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-29.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"520\" height=\"211\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>2\u3064\u306e\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u30681\u3064\u306e\u65e5\u4ed8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f5c\u308a\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u5185\u3067 MVVM \u3057\u3066\u3057\u307e\u3046\u3068\u3001MainView \u306e DataContext \u3068\u7af6\u5408\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u5185\u3067\u306f x:Name \u3067\u540d\u524d\u3092\u4ed8\u3051\u3066\u53c2\u7167\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n\r\npublic partial class PersonControl : UserControl\r\n {\r\n     public PersonControl()\r\n     {\r\n         InitializeComponent();\r\n         this.Loaded += PersonControl_Loaded;\r\n     }\r\n\r\n    public static readonly DependencyProperty YourNameProperty =\r\n         DependencyProperty.Register(\r\n             &amp;quot;YourName&amp;quot;,\r\n             typeof(string),\r\n             typeof(PersonControl),\r\n             new FrameworkPropertyMetadata(\r\n                 &amp;quot;&amp;quot;,\r\n                 FrameworkPropertyMetadataOptions.BindsTwoWayByDefault,\r\n                 new PropertyChangedCallback((o, e) =&gt; {\r\n                     var uc = o as PersonControl;\r\n                     if (uc != null)\r\n                     {\r\n                         string v = (string)e.NewValue;\r\n                         uc.text.Text = v;\r\n                     }\r\n                 })));\r\n     public static readonly DependencyProperty YourAddrProperty =\r\n         DependencyProperty.Register(\r\n             &amp;quot;YourAddr&amp;quot;,\r\n             typeof(string),\r\n             typeof(PersonControl),\r\n             new FrameworkPropertyMetadata(\r\n                 &amp;quot;&amp;quot;,\r\n                 FrameworkPropertyMetadataOptions.BindsTwoWayByDefault,\r\n                 new PropertyChangedCallback((o, e) =&gt; {\r\n                     var uc = o as PersonControl;\r\n                     if (uc != null)\r\n                     {\r\n                         string v = (string)e.NewValue;\r\n                         uc.addr.Text = v;\r\n                     }\r\n                 })));\r\n     public static readonly DependencyProperty YourBirthdayProperty =\r\n         DependencyProperty.Register(\r\n             &amp;quot;YourBirthday&amp;quot;,\r\n             typeof(DateTime),\r\n             typeof(PersonControl),\r\n             new FrameworkPropertyMetadata(\r\n                 DateTime.Now,\r\n                 FrameworkPropertyMetadataOptions.BindsTwoWayByDefault,\r\n                 new PropertyChangedCallback((o, e) =&gt; {\r\n                     var uc = o as PersonControl;\r\n                     if (uc != null)\r\n                     {\r\n                         DateTime v = (DateTime)e.NewValue;\r\n                         uc.date.SelectedDate = v;\r\n                     }\r\n                 })));\r\n         \r\n     public string YourName { get =&gt; this.text.Text; set =&gt; this.text.Text = value; }\r\n     public string YourAddr { get =&gt; this.addr.Text; set =&gt; this.addr.Text = value; }\r\n     public DateTime? YourBirthday { get =&gt; this.date.SelectedDate; set =&gt; this.date.SelectedDate = value; }\r\n\r\n    private void PersonControl_Loaded(object sender, RoutedEventArgs e)\r\n     {\r\n         this.text.LostFocus += (_, __) =&gt; {\r\n             BindingExpression beb = BindingOperations.GetBindingExpression(this, YourNameProperty);\r\n             if (beb != null)\r\n             {\r\n                 beb.Target.SetValue(YourNameProperty, text.Text);\r\n                 beb.UpdateSource();\r\n             }\r\n         };\r\n         this.addr.LostFocus += (_, __) =&gt; {\r\n             BindingExpression beb = BindingOperations.GetBindingExpression(this, YourAddrProperty);\r\n             if (beb != null)\r\n             {\r\n                 beb.Target.SetValue(YourAddrProperty, addr.Text);\r\n                 beb.UpdateSource();\r\n             }\r\n         };\r\n         this.date.LostFocus += (_, __) =&gt; {\r\n             BindingExpression beb = BindingOperations.GetBindingExpression(this, YourBirthdayProperty);\r\n             if (beb != null)\r\n             {\r\n                 if (date.SelectedDate != null)\r\n                 {\r\n                     beb.Target.SetValue(YourBirthdayProperty, date.SelectedDate);\r\n                     beb.UpdateSource();\r\n                }\r\n             }\r\n         };\r\n    }\r\n}\r\n<\/pre>\n<p>3\u3064\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304c\u8cbc\u3063\u3066\u3042\u308a\u307e\u3059\u306e\u3067\u591a\u5c11\u30b3\u30fc\u30c9\u304c\u9577\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001<\/p>\n<ul>\n<li>DependencyProperty \u3067\u3001\u5916\u5074\u304b\u3089\u8a2d\u5b9a\u3067\u304d\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f5c\u308b<\/li>\n<li>YourName \u7b49\u3067\u3001\u7c21\u6613\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f5c\u308b<\/li>\n<li>LostFocus \u30a4\u30d9\u30f3\u30c8\u3067\u3001\u5185\u5074\u304b\u3089\u5916\u306e ViewModel \u306b\u5024\u3092\u8a2d\u5b9a\u3059\u308b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u3053\u3068\u3092\u3084\u3063\u3066\u3044\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f3\u3064\u306e\u30d7\u30ed\u30d1\u30c6\u30a3<\/p>\n<ul>\n<li>YourName<\/li>\n<li>YourAddr<\/li>\n<li>YourBirthday<\/li>\n<\/ul>\n<p>\u3092\u6301\u3061\u307e\u3059\u3002<\/p>\n<p>\u8b0e\u3060\u3063\u305f\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u5185\u306e TextBox \u7b49\u306e\u5165\u529b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\uff08\u3053\u308c\u81ea\u4f53\u306f\u30d0\u30a4\u30f3\u30c9\u6a5f\u80fd\u304c\u306a\u304f\u3066\u3088\u3044\uff09\u304b\u3089\u3001\u5916\u5074\u306e ViewModel \u306b\u30c7\u30fc\u30bf\u3092\u6e21\u3059\u305f\u3081\u306b\u306f\u3001<\/p>\n<ul>\n<li>BindingOperations.GetBindingExpression \u3067\u30d0\u30a4\u30f3\u30c9\u5148\u3092\u63a2\u3059<\/li>\n<li>Target.SetValue \u3067\u5024\u3092\u66f4\u65b0\u3059\u308b<\/li>\n<li>UpdateSource\u3067\u30bd\u30fc\u30b9\uff08\u30d0\u30a4\u30f3\u30c9\u5148\u306eViewModel\uff09\u306b\u901a\u77e5\u3059\u308b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u624b\u9806\u306b\u306a\u308a\u307e\u3059\u3002\u901a\u77e5\u3059\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u306e\u901a\u308a\u00a0LostFocus \u30a4\u30d9\u30f3\u30c8\u3067\u3082\u3088\u3044\u3057\u3001TextBox \u5185\u306e\u30c6\u30ad\u30b9\u30c8\u304c\u5909\u66f4\u3055\u308c\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3001\u30ad\u30fc\u30bf\u30a4\u30d7\u3055\u308c\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3082\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>MainWindow \u304b\u3089\u4f7f\u3046<\/h2>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-30.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-30.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"468\" height=\"441\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u30e1\u30a4\u30f3\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3068\u3044\u304f\u3064\u304b\u306e\u30dc\u30bf\u30f3\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3078\u306e\u30d0\u30a4\u30f3\u30c9\u306f\u3001\u72ec\u81ea\u306b\u4f5c\u3063\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30d0\u30a4\u30f3\u30c9\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;local:PersonControl \r\n YourName=&amp;quot;{Binding Name}&amp;quot; \r\n YourAddr=&amp;quot;{Binding Addr}&amp;quot; \r\n YourBirthday=&amp;quot;{Binding Birthday}&amp;quot; \r\n Margin=&amp;quot;4&amp;quot; Grid.Row=&amp;quot;1&amp;quot; Height=&amp;quot;99&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot;\/&gt;\r\n<\/pre>\n<p>\u5f8c\u306f\u3075\u3064\u3046\u306e TextBox \u306a\u3069\u3068\u540c\u3058\u3088\u3046\u306b MVVM \u3067\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u3060\u3051\u3067\u3059\u306d\u3002\u3053\u308c\u3060\u3068\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f\u4e00\u822c\u7684\u306a\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3068\u5909\u308f\u3089\u306a\u3044\u306e\u3067\u3001<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n\r\npublic partial class MainWindow : Window\r\n {\r\n     public MainWindow()\r\n    {\r\n         InitializeComponent();\r\n         this.Loaded += (_, __) =&gt;\r\n         {\r\n             _vm = new MainViewModel();\r\n             this.DataContext = _vm;\r\n         };\r\n     }\r\n     MainViewModel _vm;\r\n\r\n    private void clickSave(object sender, RoutedEventArgs e)\r\n     {\r\n         _vm.Output = $&amp;quot;{_vm.Name}  {_vm.Addr}  {_vm.Birthday.ToString()}&amp;quot;; \r\n     }\r\n\r\n    private void clickLoad(object sender, RoutedEventArgs e)\r\n     {\r\n         _vm.Name = &amp;quot;MASDUA&amp;quot;;\r\n         _vm.Addr = &amp;quot;OSAKA&amp;quot;;\r\n         _vm.Birthday = DateTime.Parse( &amp;quot;2000\/1\/1&amp;quot;);\r\n\r\n    }\r\n }\r\n public class MainViewModel : ObservableObject\r\n {\r\n     private string _name ;\r\n     private string _addr;\r\n     private DateTime? _birthday;\r\n     private string _output;\r\n\r\n    public string Name { get =&gt; _name; set =&gt; SetProperty(ref _name, value, nameof(Name)); }\r\n     public string Addr { get =&gt; _addr; set =&gt; SetProperty(ref _addr, value, nameof(Addr)); }\r\n     public DateTime? Birthday { get =&gt; _birthday; set =&gt; SetProperty(ref _birthday, value, nameof(Birthday)); }\r\n     public string Output { get =&gt; _output; set =&gt; SetProperty(ref _output, value, nameof(Output)); }\r\n }\r\n<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-31.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-31.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"386\" height=\"393\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MVVM \u3067\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u4f5c\u308b\u3068\u304d\u306b\u5fae\u5999\u306b\u30cf\u30de\u308b\u306e\u304c\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u5185\u306b TextBox \u3092\u8cbc\u308a\u4ed8\u3051\u3066\u304a\u3044\u3066\u3001\u5916\u5074\u306e ViewModel \u304b\u3089\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u5024\u3092\u8a2d\u5b9a\u3059 &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/9475\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[23],"tags":[],"class_list":["post-9475","post","type-post","status-publish","format-standard","hentry","category-csharp"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=9475"}],"version-history":[{"count":7,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9475\/revisions"}],"predecessor-version":[{"id":9482,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9475\/revisions\/9482"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=9475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=9475"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=9475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}