<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>suusanex</author_name>
  <author_url>https://blog.hatena.ne.jp/suusanex/</author_url>
  <blog_title>新しもの好きプログラマの耳より情報ブログ</blog_title>
  <blog_url>https://suusanex.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>概要 Windowsでデスクトップアプリを作ると、必ずついて回るのが「多重起動されたらどうするか」です。エディタなどの自由度の高いアプリを除けば、たいていはユーザーの混乱を避けるために多重起動禁止、できれば多重起動時に「すでに起動しているウインドウをアクティブにする」といった要求になると思います。ウインドウメッセージやイベントやミューテックスを使えばまあ自力でも作れますが、少々面倒です。 Windows App SDKを組み込むと、WPFでもこれを容易に実現できます。これ1つ使うだけでも十分に便利だと思うので、最小限の組み込み方を紹介します。 最初に結論まとめ こんな感じで、既存のWPFの処理…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsuusanex.hatenablog.jp%2Fentry%2F2024%2F11%2F15%2F092853&quot; title=&quot;WPFの多重起動の処理は、自作しなくてもWindows App SDKで簡単にできる - 新しもの好きプログラマの耳より情報ブログ&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/s/suusanex/20241115/20241115092806.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-15 09:28:53</published>
  <title>WPFの多重起動の処理は、自作しなくてもWindows App SDKで簡単にできる</title>
  <type>rich</type>
  <url>https://suusanex.hatenablog.jp/entry/2024/11/15/092853</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
