<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akCs</author_name>
  <author_url>https://blog.hatena.ne.jp/akCs/</author_url>
  <blog_title>akCs’s blog</blog_title>
  <blog_url>https://akcs.hatenablog.com/</blog_url>
  <categories>
    <anon>Blazor</anon>
  </categories>
  <description>子側で引数付きのイベントを起こし、親はそのイベントを購読する。 ●手順 &lt;&lt;Component側&gt;&gt; ①子側でイベントコールバックを定義 [Parameter] public EventCallback&lt;引き渡す値の型&gt; 任意のイベント名 { get; set; } ②値を渡したいタイミングでイベントを起こす イベントは、InvokeAsyncで起こしてもいいし、例えば子側の ボタンクリックイベントでやるなら、onclick属性にイベントコールバックを 直接指定してもよい。 【Invokeする場合】 ・await this.任意のイベント名.InvokeAsync(引き渡す値); 【oncli…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakcs.hatenablog.com%2Fentry%2F2022%2F03%2F06%2F003112&quot; title=&quot;子Componentから親に値を引き渡す - akCs’s blog&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>2022-03-06 00:31:12</published>
  <title>子Componentから親に値を引き渡す</title>
  <type>rich</type>
  <url>https://akcs.hatenablog.com/entry/2022/03/06/003112</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
