<?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 Framework</anon>
    <anon>C#</anon>
    <anon>WPF</anon>
  </categories>
  <description>WPFでListBoxを使ってカードUIを作成する方法です。 作成したものは以下のような外観になります。 リサイズすると横幅に合わせて列数が変わります。 よこに広げると以下のように並び変えられます。 カードの構造 XAMLを貼る前に構造はこんな感じになっています。色がついてる部分はStackPanel.BackgroundをViewModelのBarColor:Colorでバインドして塗りつぶしています。 XAML 全体のコードは以下の通りです。 &lt;ListBox Margin=&quot;10&quot; Padding=&quot;10&quot; Background=&quot;Transparent&quot; ScrollViewer.Ho…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2017%2F11%2F29%2F003101&quot; title=&quot;WPFのListBoxでカードUIを作成する - 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>https://cdn-ak.f.st-hatena.com/images/fotolife/T/Takachan/20171205/20171205235559.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-11-29 00:31:01</published>
  <title>WPFのListBoxでカードUIを作成する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2017/11/29/003101</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
