<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kei10in</author_name>
  <author_url>https://blog.hatena.ne.jp/kei10in/</author_url>
  <blog_title>@kei10in の日記</blog_title>
  <blog_url>https://kei10in.hatenablog.jp/</blog_url>
  <categories>
    <anon>WPF</anon>
    <anon>Programming</anon>
  </categories>
  <description>最近 MVVM を勉強がてら WPF を触ってる。で、コンテキスト メニューをデータバインディングで作ろうと思ったらはまったのでメモ。 課題 WPF で MVVM やってるときに MenuItem をデータバインディングで作りたいって思うことあると思うんです。で、こうやるとうまくいかない。 &lt;ContextMenu ItemsSource=&quot;{Binding Path=SomeCollection}&quot;&gt; &lt;ContextMenu.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;MenuItem Header=&quot;{Binding Path=DisplayName}&quot; Command=…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkei10in.hatenablog.jp%2Fentry%2F20111125%2F1322237387&quot; title=&quot; MenuItem をデータバインディングで作る。 - @kei10in の日記&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>http://cdn-ak.f.st-hatena.com/images/fotolife/k/kei10in/20111126/20111126005910.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-11-25 01:09:47</published>
  <title> MenuItem をデータバインディングで作る。</title>
  <type>rich</type>
  <url>https://kei10in.hatenablog.jp/entry/20111125/1322237387</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
