<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>okazuki</author_name>
  <author_url>https://blog.hatena.ne.jp/okazuki/</author_url>
  <blog_title>かずきのBlog@hatena</blog_title>
  <blog_url>https://okazuki.hatenablog.com/</blog_url>
  <categories>
    <anon>WPF</anon>
  </categories>
  <description>お昼にこんな話題が…。 ユーザー レスポンスを非同期処理に見立てて await する手法だと Window.Closing をキャンセルできない問題、常に e.Cancel = true; しておいて、レスポンスで OK 来たら Application.Shutdown(); してしまえというアレな策が2013-08-22 11:36:10 via Mukyutter; Silent Seleneもんもんと考えた結果以下のようなBehaviorが出来ました。実用に耐えうるか…？ using System; using System.ComponentModel; using System.Th…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fokazuki.hatenablog.com%2Fentry%2F2013%2F08%2F22%2F215327&quot; title=&quot;非同期処理でWindowのClosingをキャンセルするかどうか決めたい - かずきのBlog@hatena&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://a0.twimg.com/profile_images/344513261576527642/8e4aab3b436b94140cdc2a5d349d2226_normal.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-08-22 21:53:27</published>
  <title>非同期処理でWindowのClosingをキャンセルするかどうか決めたい</title>
  <type>rich</type>
  <url>https://okazuki.hatenablog.com/entry/2013/08/22/215327</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
