<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shiba-yan</author_name>
  <author_url>https://blog.hatena.ne.jp/shiba-yan/</author_url>
  <blog_title>しばやん雑記</blog_title>
  <blog_url>https://blog.shibayan.jp/</blog_url>
  <categories>
    <anon>WPF</anon>
  </categories>
  <description>作っているアプリをマルチモニターに対応させつつ、異なる DPI でも問題なく動くように実装していたら、思ったよりもはまったのでメモとして残します。動作確認用にアプリケーションを作ったので、とりあえず公開しておきました。それぞれのボタンを押すと、表示されているのモニターの中央に移動するという簡単なアプリです。 WPF では Window 座標と Monitor サイズも DIP になる 当たり前ですが、WPF は全てを DIP で扱うようになっているので SystemParameters から取れるモニターのサイズも DIP に変換されたものが返って来ます。なので解像度が 3000x2000 か…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.shibayan.jp%2Fentry%2F20190612%2F1560267647&quot; title=&quot;Per-Monitor DPI 環境下で WPF の Window 位置を調整する - しばやん雑記&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/shiba-yan/20190611/20190611233414.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-06-12 00:40:47</published>
  <title>Per-Monitor DPI 環境下で WPF の Window 位置を調整する</title>
  <type>rich</type>
  <url>https://blog.shibayan.jp/entry/20190612/1560267647</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
