<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>.NET</anon>
    <anon>C#</anon>
  </categories>
  <description>初めに XAML 環境で、Model は List&lt;T&gt;, ViewModel は ObservableCollection&lt;T&gt; で双方向でバインドしたい、、、のようなケースが発生したときに汎用的にバインドする実装例を紹介したいと思います。 Model 側が既に List&lt;T&gt; で定義されてしまって変更できない場合や、モデル層は通知をするのは責務範囲外などの設計論上の都合で Model の List&lt;T&gt; を変更できない場合が対象です。 概念的な実装方法ですが、以下のように中間層に通知ありのラッパー（通知機能付きのデコレーター）を作成することで実現したいと思います。↓ こんな感じ。 Mode…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2025%2F12%2F24%2F193234&quot; title=&quot;【C#】ListとObservableCollectionを同期する - PG日誌&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-24 19:32:34</published>
  <title>【C#】ListとObservableCollectionを同期する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2025/12/24/193234</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
