<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gingakyo</author_name>
  <author_url>https://blog.hatena.ne.jp/gingakyo/</author_url>
  <blog_title>見よう見まねで Programmingライフ</blog_title>
  <blog_url>https://gingakyo-b.hatenablog.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>前の記事で、form画面を別スレッドにしました。 別スレッドにして外から眺めることで、WebView2を使うときも同期的にプログラムが書けるようになります。 前の処理が終わったのを確認してから次の処理をするという同期的なプログラムしか書けないへなちょこプログラマーの自分でもWebView2が扱いやすくなります。 「なんで PowerShell で form や WebView2 を使おうとするの?」というツッコミはおいといて。 - 目次 - 別スレッドを使わない場合のお手軽な方法 EnsureCoreWebView2Asyncの場合 ExecuteScriptAsync()の場合 別スレッドで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgingakyo-b.hatenablog.com%2Fentry%2F2026%2F04%2F11%2F162742&quot; title=&quot;PowerShellでWebView2のCompleted()系を同期的に待つ - 見よう見まねで Programmingライフ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-04-11 16:27:42</published>
  <title>PowerShellでWebView2のCompleted()系を同期的に待つ</title>
  <type>rich</type>
  <url>https://gingakyo-b.hatenablog.com/entry/2026/04/11/162742</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
